On Mon, Aug 22, 2005 at 10:51:53PM +0200, Ingo Blechschmidt wrote: : If we go with these changes, this functionality (starting place for a : search) would be available by using : : Foo::Bar<$symbol_to_lookup>; # right?
Presumably, though Foo::Bar differs from OUTER in that, for packages, the only fallback place to look is *. We don't automatically scan Foo after Foo::Bar, for instance. Maybe there could be some way for Foo::Bar to delegate to Foo if it likes, though. Sort of an inside-out import. But we've got along fine without that in Perl 5, so I'm not going to mandate it in the base language unless we see some really good uses for it. In general we should encourage outer classes to share with inner classes via lexical scoping rather than package scoping, I expect. Larry