develooper Front page | perl.perl5.porters | Postings from February 2009

Re: method names clash by importing: next step

Thread Previous | Thread Next
From:
Zefram
Date:
February 26, 2009 03:23
Subject:
Re: method names clash by importing: next step
Message ID:
20090226112253.GQ16377@fysh.org
Dmitry Karasik wrote:
>I would extend this proposal so that all subs, even without :method,
>but while "use methods" is in effect, would also be placed into the
>method stash.

What the hell?  That's exactly the behaviour that "use methods" is
meant to turn off!  "use methods" means "all methods in this package are
declared with :method, so any sub without the attribute isn't a method".

>                                         Also, since exported names
>have GvIMPORTED flag (that means can be easily distinguished from 
>native subs),

Please don't introduce a distinction between imported subs and
directly-defined subs.  It would cause yet more confusion and breakage.

-zefram

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