develooper Front page | perl.perl6.stdlib | Postings from June 2002

Re: More 6PAN musings: local namespaces

Thread Previous | Thread Next
Dan Sugalski
June 16, 2002 18:28
Re: More 6PAN musings: local namespaces
Message ID:
At 6:10 PM -0700 6/16/02, Peter Scott wrote:
>It would be nice if one could say
>         use Foo::Bar as Local::Foo::Bar
>as a way of expressing your proposal.

The one problem with that is modules that have multiple namespaces in 
them. It's not too unusual for to have the packages Foo, 
Foo::Bar, Foo::Bar::Baz, and Foo::Xyzzy in them. Which can 
potentially lead to some interesting namespacing issues.

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                       teddy bears get drunk

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