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

Re: ./method

Thread Previous | Thread Next
Larry Wall
May 15, 2005 17:56
Re: ./method
Message ID:
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.


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