develooper Front page | perl.perl6.language | Postings from August 2005

Re: Symbolic dereferentiation of magical variables

Thread Previous | Thread Next
Larry Wall
August 22, 2005 14:18
Re: Symbolic dereferentiation of magical variables
Message ID:
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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About