<takadonet> rakudo: role work { method x {say 'hello'}}; class me does work {}; 
me.new.x();
<p6eval> rakudo e393c7: OUTPUT«Could not find sub &say [...]
<takadonet> Is there a work around that?
<takadonet> It's already reported as a bug
<masak> takadonet: 'fraid the workaround is not to use roles... :(
<takadonet> masak: not the answer I was looking for :(
<masak> takadonet: I understand that. let me know if you find a better answer. 
:/
<masak> rakudo: our &s = &say; role A { method foo { &s("OH HAI") } }; class B 
does A {}; 
B.new.foo
<p6eval> rakudo e393c7: OUTPUT«OH HAI␤»
<masak> takadonet: that seems to work.
<takadonet> masak: thanks!
* masak adds that to the ticket

Reply via email to