# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #80694] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=80694 >
<masak> rakudo: class A { method foo { 'abc' }; A.^add_method('bar', A.^can('foo')); }; my $x= A.new(); say $x.bar(); say $x.bar() <p6eval> rakudo : OUTPUT«abcNo candidates found to invoke for method 'foo' on object of type 'A'[...] <masak> <takadonet> only works once :( * masak submits rakudobug <masak> if jnthn were here, he'd say that this result isn't so strange; becuase .^can gives the dispatcher to the 'foo' method(s). <masak> call it once, shame on... shame on you. call me tw... can't get called again <takadonet> it's strange <masak> as with string encodings, dispatchers are there whether you're aware of them or not, and whether you want/like them or not.