Front page | perl.perl6.language |
Postings from May 2005
Re: ./method
Thread Previous
|
Thread Next
From:
Larry Wall
Date:
May 15, 2005 17:56
Subject:
Re: ./method
Message ID:
20050516005559.GC26184@wall.org
On Sun, May 15, 2005 at 06:34:47PM +0200, Juerd wrote:
: .:method # $_.:method
It is almost certainly the case that you can't call a private method
of $_ unless it just happens to have trusted you, and since it's
such an unusual thing, calling into another class's private method
should have an explicit invocant in any case. So it's fine by me
for that notation to always mean $self.:method, following Damian's
one-character vs two-character generalization. The problem with
being consistent is that there are lots of ways to be consistent,
and they're all inconsistent with each other.
Larry
Thread Previous
|
Thread Next