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:
Chad Granum
Date:
December 18, 2015 03:30
Subject:
Re: Proposal: Add {-as => 'new_name'} feature to Exporter.pm
Message ID:
CAJFr3kt=zaUpAmxuvWO5qQTc=wCmFTttHRJYA1yaXcyua7BaFQ@mail.gmail.com
Patch sent to perlbug, though I have not gotten a response yet, I am used
to  it happening pretty fast.. I wonder if I missed something required...

On Thu, Dec 17, 2015 at 7:17 PM, Chad Granum <exodist7@gmail.com> wrote:

> Here is a proper patch against blead, I will also go ahead and send it in
> to perlbug.
>
> On Thu, Dec 17, 2015 at 7:12 PM, demerphq <demerphq@gmail.com> wrote:
>
>> +1 in support. For sure.
>>
>> On 18 December 2015 at 03:41, Chad Granum <exodist7@gmail.com> wrote:
>> > So, far the discussion has only been about a single line of code under
>> the
>> > hood. Nobody has raised either concern or support for the feature...
>> >
>> > On Thu, Dec 17, 2015 at 5:34 PM, demerphq <demerphq@gmail.com> wrote:
>> >>
>> >> On 18 December 2015 at 01:58, Chad Granum <exodist7@gmail.com> wrote:
>> >> > I have no objections to using reftype, except that it returns undef
>> on
>> >> > non-refs which makes the conditional more complicated.
>> >>
>> >> ref($foo) and reftype($foo) eq "HASH"
>> >>
>> >> > Also I would be
>> >> > pretty surprised if someone passed in a blessed ref to change the
>> name
>> >> > of a
>> >> > sub..
>> >>
>> >> On second thought, you are probably right. Might as well wait to see
>> >> if someone files a bug report.
>> >>
>> >> Yves
>> >
>> >
>>
>>
>>
>> --
>> perl -Mre=debug -e "/just|another|perl|hacker/"
>>
>
>

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