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

Re: AUTLOAD and $_

Thread Previous | Thread Next
From:
Larry Wall
Date:
June 21, 2005 17:55
Subject:
Re: AUTLOAD and $_
Message ID:
20050622005515.GA20562@wall.org
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.

Larry

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