Front page | perl.perl6.language |
Postings from June 2005
Re: Ignoring parameters
Thread Previous
|
Thread Next
From:
TSa
Date:
June 17, 2005 00:19
Subject:
Re: Ignoring parameters
Message ID:
42B27975.4030406@orthogon.com
Damian Conway wrote:
> No. That needs to be:
>
> method greet(FooClass ::class:) { say "Hello!"; }
>
> (as implied by "takes a class as its invocant" in S12).
> ^^^^^
Ohh, does that mean that ::class can be used as a type
inside the body? E.g.
method template ( FooClass ::foo :)
{
my foo $f;
... # use $f
}
--
TSa (Thomas Sandlaß)
Thread Previous
|
Thread Next