In reading about symbolic references, I didn't find any specific
language that mentioned using them in conjunction with methods or OO. I
would like to see specific language and examples added to the spec to
clarify this.

Here's a specific example which currently doesn't work in pugs.
It's attempting to use a symbolic reference to call a method in a parent
class, and fails to find it.

With an equivalent syntax in Perl 5, this works.

{
    my $test = ' &::($meth)(self:) should find method in parent class';
    class Foo {
        method foo () { "found" }
    }
    class Child is Foo {
        method b () {
            my $meth = 'foo';
            &::($meth)(self:);
        }
    }
    my $obj = Child.new;
    eval_is( $obj.b, 'found', $test);
}

Perhaps there some other recommended I've missed for this ?

Reply via email to