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

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

Thread Previous | Thread Next
July 14, 2005 15:41
Re: WTF? - Re: method calls on $self
Message ID:
Larry Wall skribis 2005-07-14 13:39 (-0700):
> On Thu, Jul 14, 2005 at 12:55:26PM -0400, Nathan Gray wrote:
> : So long as .foo (pretty please) means $ all the time (with sugar on
> : top?).
> It means that all the time, but only when unambiguous.

Thus it never means $? without $_ being the same thing, and thus
it always means $, and thus there is no ambiguity about what .foo
means, and .foo can mean $ even if $_ isn't $?SELF, as $?SELF is
never a factor in the decision what .foo means. Good, glad that's

We have normality.

> It's a little klunky but does localize the override rather visibly.
> Doubtless people will generally put the "use dot" at the front though.

Doubtless if you really insist on this "feature", Perl 6 will see its
first fork very shortly after its release... But have no fear, because
it will run all standard Perl 6 code too, as the thing that the fork
introduces used to be an error.


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