Consider use_ok from the test system. Essentially, it should be
require $module; $module.import; pass load $module;
in its caller's context. But now that exportation is lexical, how can
use_ok be implemented? It must divert the symbols installed by import
and have them installed in the caller
What we need to do is find a way to do this at compile time.
One way is to make use_ok a macro.
The whole thing with linkage in Perl 6 is that it's supposed to
happen at compile time so that things are overall saner, but that it
can happen at runtime if we really really mean it.
use_ok as a
On 1/9/06, Gaal Yahas [EMAIL PROTECTED] wrote:
sub use_ok($module) {
eval package {caller.package}; require etc.;
}
I'd like to see a nice interface to scopes in general. That is, we
would have a scope object which would provide access to all the
lexical scopes and the package