mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 12:46:53 +08:00
168f365cde
- 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
11 lines
144 B
Plaintext
11 lines
144 B
Plaintext
|
|
print('before cyclic_b')
|
|
import cyclic_a
|
|
print('after cyclic_b')
|
|
|
|
def fn_b()
|
|
assert(cyclic_a.fn_a() == "cyclic a")
|
|
return "cyclic b"
|
|
end
|
|
|