Front page | perl.perl6.language |
Postings from April 2002
Re: Unary dot
Thread Previous
|
Thread Next
From:
Mark J. Reed
Date:
April 10, 2002 10:35
Subject:
Re: Unary dot
Message ID:
20020410173522.GJ18047@charm.turner.com
On Wed, Apr 10, 2002 at 10:30:25AM -0700, Glenn Linderman wrote:
> method m1
> {
> m2; # calls method m2 in the same class
Yes, but does it call it as an instance method on the current invocant
or as a class method with no invocant? If the former, how would you
do the latter?
> .m2; # syntax error
Doesn't that violate your stated rule that"the default topic within a
method be the invocant? Shouldn't .m2 be equivalent to $_.m2?
--
Mark J. REED <markjreed@mail.com>
Thread Previous
|
Thread Next