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

^method ?

Thread Next
From:
Autrijus Tang
Date:
May 13, 2005 20:42
Subject:
^method ?
Message ID:
20050514034123.GA73024@aut.dyndns.org
Juerd informed me today that .method should still means $_.method.

However, for the OO modules we're writing, there still needs to be a way
to invoke methods on the current invocant, when the invocant name has
been omitted from the method() declaration.

Currently Pugs has:

    $?SELF.method
    ^method

Is any of the two forms considered canonical?  Or is there some other
alternatives?

Thanks,
/Autrijus/

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