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

Re: ./method

Thread Previous | Thread Next
May 15, 2005 09:34
Re: ./method
Message ID:
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.


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