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

Re: ./method

Thread Previous | Thread Next
From:
Juerd
Date:
May 15, 2005 09:34
Subject:
Re: ./method
Message ID:
20050515163447.GL18368@c4.convolution.nl
Larry Wall skribis 2005-05-15  9:24 (-0700):
> On Sun, May 15, 2005 at 12:22:07PM -0400, Matt Diephouse wrote:
> : Does this mean private methods will be called like this?
> :   ./:method()
> No, I think that's still just
>     .:method()

Both, depending on what you're calling it on.

    ./:method  # $?SELF.:method
    .:method   # $_.:method
    
The : is part of the method name.

I've been looking for a good moment to come with this, but there is
none, making this as good a point as any: I don't like the dot in
attributes, and the colon that replaces it.

If we have .method and .:method, then we should have $.attr and $.:attr.

Not $:attr.


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

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