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

Re: More 6PAN musings: local namespaces

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
June 16, 2002 18:28
Subject:
Re: More 6PAN musings: local namespaces
Message ID:
a05111b00b932eaad9d53@[63.120.19.221]
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 Foo.pm to have the packages Foo, 
Foo::Bar, Foo::Bar::Baz, and Foo::Xyzzy in them. Which can 
potentially lead to some interesting namespacing issues.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About