# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #88750] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=88750 >
<masak> rakudo: role A { our sub foo { say "OH HAI" } }; A::foo <p6eval> rakudo 5ac05e: OUTPUT«Cannot find sub A::foo in main program body at line 1» <masak> jnthn: should that work? <jnthn> mumble * masak submits rakudobug <jnthn> :) <jnthn> I don't know, tbh. <jnthn> I can argue it both ways. <masak> me too. <masak> but I wrote it by accident, and now that I'm thinking about it, it doesn't seem so odd. <jnthn> role A { our sub foo { say $?CLASS } } # ouch :) <masak> well, yeah. but there will always be edge cases. <jnthn> True <masak> I can distinguish methods using the $obj.A::foo syntax, so why not subs using just A::foo?