mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 20:50:55 +08:00
![Thakee Nathees](/assets/img/avatar_default.png)
- all import statement (native or script file) have the same syntax - allow relative (including parent directory) imports - cyclic imports are handled by caching the scripts - `import foo` can potentially import `<searchpath>/foo/_init.pk` - * import are not supported anymore
13 lines
146 B
Plaintext
13 lines
146 B
Plaintext
|
|
print('before cyclic_a')
|
|
import cyclic_b
|
|
print('after cyclic_a')
|
|
|
|
def fn_a()
|
|
return "cyclic a"
|
|
end
|
|
|
|
def get_b_fn()
|
|
return cyclic_b.fn_b
|
|
end
|