Re: [perl #81982] [BUG] Infinite recursion where none was expected after rebinding &return in Rakudo

2011-01-10 Thread Patrick R. Michaud
On Sat, Jan 08, 2011 at 02:59:38PM -0800, Carl Mäsak wrote: > rakudo: my &r = &return; sub f { &return := -> $v { say > "LOL!"; &r($v) }; return(42) }; say f [23:45] > rakudo e7e9d5: > OUTPUT«LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤LOL!␤

[perl #81982] [BUG] Infinite recursion where none was expected after rebinding &return in Rakudo

2011-01-08 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #81982] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=81982 > rakudo: my &r = &return; sub f { &return := -> $v { say "LOL!"; &r($v) }; return(42) };