Aaron Sherman skribis 2004-08-23 12:53 (-0400):
> use Some::Module::That::Defines::A::Class;
> our Some::Module::That::Defines::A::Class $foo := new;
> and I keep thinking that that's too redundant
> (...)
> So, I was wondering about a synonym, like:
> uses Some::Module::That::Defines::A::Class $foo;
Maybe, but I'd like something like this better:
#!/usr/bin/perl6
use Module::AutoLoader :except(rx/^ Baz\:\: /);
my Foo::Bar $bar .= new;
my Quux::Xyzzy $xyzzy .= new;
my Baz::Blah $blah .= new; # error, because there is no Baz::Blah::new
Perhaps something must be added to tell it *when* to load modules:
at runtime or during compilation.
It shouldn't be hard to implement this module yourself, should it not go
into the standard distribution.
Juerd