On 10/10/05, Stevan Little <[EMAIL PROTECTED]> wrote:
> ::Class
> ^
> : <-- eFoo is a subclass of Class
> :
> ::eFoo # eFoo is also an instance of Class
> |
> | <-- eFoo is the class of Foo
> V
> ::Foo
>
> The dispatching of instance methods is still the same, and everything
> "just works". Well... almost everything.
How do you explain this:
class Foo {
method bar (Class $class:) { "class method" }
}
say Foo.bar; # class method
my $foo = Foo.new;
say $foo.bar; # class method
Assuming that that is valid Perl.
Luke