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ß)


Reply via email to