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

Re: WTF? - Re: method calls on $self

Thread Previous | Thread Next
From:
Nathan Gray
Date:
July 14, 2005 18:36
Subject:
Re: WTF? - Re: method calls on $self
Message ID:
20050715013540.GA10035@vs1.graystudios.org
On Fri, Jul 15, 2005 at 01:09:57AM +0300, Yuval Kogman wrote:
> On Thu, Jul 14, 2005 at 13:39:44 -0700, Larry Wall wrote:
> > On Thu, Jul 14, 2005 at 12:55:26PM -0400, Nathan Gray wrote:
> > : So long as .foo (pretty please) means $_.foo all the time (with sugar on
> > : top?).
> > 
> > It means that all the time, but only when unambiguous.  If you say
> > 
> >     use dot;
> 
> I'd rather have '.foo' not work on $?SELF at all than have that.

Um, that's what I was hoping for too.  Let .foo mean $_.foo, and never
$?SELF.foo, unless of course $_ happens to contain $?SELF at that
moment.

(sugar, anyone?)

-kolibrie

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