develooper Front page | perl.perl5.porters | Postings from December 2015

Re: Proposal: Add {-as => 'new_name'} feature to Exporter.pm

Thread Previous | Thread Next
From:
demerphq
Date:
December 18, 2015 10:50
Subject:
Re: Proposal: Add {-as => 'new_name'} feature to Exporter.pm
Message ID:
CANgJU+Xfe=U+C4q+7LsNfXUw1+xp=HtpAwenBogpDRQbDTjLxg@mail.gmail.com
On 18 December 2015 at 06:22, Zefram <zefram@fysh.org> wrote:
> Chad Granum wrote:
>>The problem is that it is very hard to do on the importing side. Once a sub
>>is entered into your namespace it is hard to undefine it.
>
> That would be a silly way to do it.  The sensible way is to first import
> into a scratch package (via the exporter, using standard names), then
> the import-side code can import from the scratch package into the caller
> package under a different name.


Im sorry. But  I dont agree with you at all that this is the sensible
way to do this. I think Chads proposal is infinitely saner than what
you just said.

Yves

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