Front page | perl.perl6.language |
Postings from June 2005
Re: Ignoring parameters
Thread Previous
|
Thread Next
From:
Damian Conway
Date:
June 17, 2005 15:18
Subject:
Re: Ignoring parameters
Message ID:
42B34C29.6070203@conway.org
John Siracusa wrote:
> (BTW, I'm not sure where those "./" thingies came from, but it's what GMail
> showed in your message. I'm assuming it should just be ".")
No. There's now also a unary ./ operator in Perl 6.
Unary . calls a specified method on the current topic.
Unary ./ calls a specified method on the current invocant.
The point being that methods no longer topicalize their invocant. So you need
to use ./ instead of . to call methods on an implicit invocant.
Damian
Thread Previous
|
Thread Next