Gaal Yahas wrote:

On Thu, Jun 16, 2005 at 01:26:31PM -0600, Luke Palmer wrote:

Say I have a class method in FooClass, callable as FooClass.greet():

    method greet(Class $class: ) {
       say "Hello, FooClass!";
    }

Aside from the fact that I don't think this is the right way to
specify class methods...
What do you think is the right way to specify them?

I certainly can't speak for Luke, but I think the right way to specify class methods is:

        method greet(FooClass ::class:) {
            say "Hello, FooClass!";
        }

And I think that subs and methods *should* complain about all unused non-optional parameters *except* invocants.

Damian

Reply via email to