forked from Mirror/wren
This is a breaking change because existing imports in user Wren code that assume the path is relative to the entrypoint file will now likely fail. Also, stack trace output and host API calls that take a module string now need the resolved module string, not the short name that appears in the import.
11 lines
373 B
Plaintext
11 lines
373 B
Plaintext
import "./module" for Module1, Module2, Module3, Module4, Module5
|
|
|
|
// Only execute module body once:
|
|
// expect: ran module
|
|
|
|
System.print(Module1) // expect: from module one
|
|
System.print(Module2) // expect: from module two
|
|
System.print(Module3) // expect: from module three
|
|
System.print(Module4) // expect: from module four
|
|
System.print(Module5) // expect: from module five
|