# New Ticket Created by  Steve Schulze 
# Please include the string:  [perl #116613]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=116613 >



Some time between Oct 2012 and Feb 2013 Rakudo stopped making methods 
added at run time available to derived types. It worked in beijing and 
in nom until recently.

Same behaviour under Linux and Windows builds.

$ perl6 -v
This is perl6 version 2013.01-97-g6d5dc67 built on parrot 4.10.0 
revision RELEASE_4_10_0


thundergnat: Is there a way in Rakudo to augment a parent type at run 
time and have the augmented method available to child types 
automatically? I know that used to "work" but it's entirely possible I 
was (ab)using unspecced behavior. :/
thundergnat: r: use MONKEY_TYPING; augment class Int { method foo (*@) { 
"foo" } }; say Int.foo;
p6eval: rakudo 6d5dc6: OUTPUT«foo␤»
thundergnat: r: use MONKEY_TYPING; augment class Cool { method foo (*@) 
{ "foo" } }; say Int.foo;
p6eval: rakudo 6d5dc6: OUTPUT«No such method 'foo' for invocant of type 
'Int'␤ in block at /tmp/2jjKk3JKph:1␤␤»
thundergnat: :(
moritz: thundergnat: it should work, I think
moritz: but it's tricky to do
thundergnat: It did what I expected as late as 2012.10. I just updated 
to latest Rakudo and it no longer does.
moritz: 2012.10 did it right?
moritz: that's surpising
thundergnat: Yes
thundergnat: Should I file a bug report? I wasn't entirely sure that the 
change was unintended
moritz: yes, please report

Reply via email to