jeff-jenness / close

Automatically exported from code.google.com/p/close
0 stars 0 forks source link

Add run-time 'import' statement. #30

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This may be syntactic sugar, or a builtin function, or a RTL function. It's
not clear what the right answer is.

But at runtime, be able to use a file name, or an abstract syntax
(Foo::Bar), or a filehandle, or a bytecode pmc.

FROM module-identifier IMPORT decl-name-pattern AS alias;

FROM module IMPORT *;

IMPORT module AS alias ;

Some of this has to depend on how the remote compiler works. But in
general, "import module" should get the default symbols -- the @EXPORTS or
whatever. While IMPORT * would get EXPORT_ALL. 

Alias mapping is into the current namespace, or into a namespace specified
via :namespace(foo) adverb. 

Since this is at runtime, and I'm not clear on how that's going to work,
this is kind of open-ended.

Original issue reported on code.google.com by austin_h...@yahoo.com on 9 Jul 2009 at 9:35