This website requires JavaScript.
Explore
Mail
Help
Register
Sign In
Mirror
/
wren
Watch
1
Star
0
Fork
1
You've already forked wren
mirror of
https://github.com/wren-lang/wren.git
synced
2026-01-13 23:28:53 +01:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
debugger
wren
/
test
/
language
/
module
/
shared_import
/
shared.wren
4 lines
56 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
Start getting module loading working. Right now, it uses a weird "import_" method on String which should either be replaced or at least hidden behind some syntax. But it does roughly the right thing. Still lots of corner cases to clean up and stuff to fix. In particular: - Need to handle compilation errors in imported modules. - Need to implicitly import all core and IO types into imported module. - Need to handle circular imports. (Just need to give entry module the right name for this to work.)
2015-02-06 07:01:15 -08:00
// nontest
"IO" -> "System". Get rid of the separate opt-in IO class and replace it with a core System class. - Remove wren_io.c, wren_io.h, and io.wren. - Remove the flags that disable it. - Remove the overloads for print() with different arity. (It was an experiment, but I don't think it's that useful.) - Remove IO.read(). That will reappear using libuv in the CLI at some point. - Remove IO.time. Doesn't seem to have been used. - Update all of the tests, docs, etc. I'm sorry for all the breakage this causes, but I think "System" is a better name for this class (it makes it natural to add things like "System.gc()") and frees up "IO" for referring to the CLI's IO module.
2015-09-15 07:46:09 -07:00
System.print("shared")
Start getting module loading working. Right now, it uses a weird "import_" method on String which should either be replaced or at least hidden behind some syntax. But it does roughly the right thing. Still lots of corner cases to clean up and stuff to fix. In particular: - Need to handle compilation errors in imported modules. - Need to implicitly import all core and IO types into imported module. - Need to handle circular imports. (Just need to give entry module the right name for this to work.)
2015-02-06 07:01:15 -08:00
var Shared = "shared"
Reference in New Issue
Copy Permalink