develooper Front page | perl.perl6.language | Postings from June 2005

Re: AUTLOAD and $_

Thread Previous | Thread Next
Rod Adams
June 21, 2005 18:08
Re: AUTLOAD and $_
Message ID:
Larry Wall wrote:

>On Mon, Jun 20, 2005 at 07:09:42PM -0500, Rod Adams wrote:
>: S10 talks about how it is AUTOSUB vs AUTOMETH (and others), but AUTOLOAD 
>: is still around. S10 doesn't mention it, but I think it's been said that 
>: AUTOLOAD only gets called as a last resort.
>Really, the only point of keeping AUTOLOAD around is to make it easier
>to translate Perl 5 to Perl 6.  AUTOSUB and friends have the spiffy
>reference-returning semantics everyone wants.  I'd like the translator
>to be able to turn "goto &foo" into "&foo.tailcall" or some such,
>and otherwise leave AUTOLOAD alone.

Should we then perhaps rename it to: DEPRECATED_PERL5_AUTOLOAD ?

-- Rod Adams

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