[perl #81278] Can't defer to return()

2016-08-25 Thread Will Coleda via RT
On Wed Jul 08 09:55:39 2015, coke wrote: > On Fri Jan 04 04:38:30 2013, bbkr wrote: > > On 2012.12: > > > > r: sub f($x) { multi return($nv) { nextwith($nv /2); }; > > return $x; }; say f 6 > >rakudo 70262f: OUTPUT«===SORRY!===␤Method 'is_dispatcher' > > not found for > > invocant of class 'Bl

[perl #81278] Can't defer to return()

2015-07-08 Thread Will Coleda via RT
On Fri Jan 04 04:38:30 2013, bbkr wrote: > On 2012.12: > > r: sub f($x) { multi return($nv) { nextwith($nv /2); }; > return $x; }; say f 6 >rakudo 70262f: OUTPUT«===SORRY!===␤Method 'is_dispatcher' > not found for > invocant of class 'Block'␤» Pretty much unchanged: $ perl6 -e 'sub f($x) {

[perl #81278] Can't defer to return()

2011-01-12 Thread Carl Mäsak via RT
moritz (>): > On Rakudo 2010.12: > > use v6; > sub f($x) { > multi return($nv) { > nextwith($nv /2); > } > > return $x; > } > say f 6 > > I'd expect that to output 3\n, but instead I get > > Null PMC access in clone() > in 'return' at line 1 > in 'f' at line 7:test.pl >

[perl #81278] Can't defer to return()

2010-12-25 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #81278] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=81278 > On Rakudo 2010.12: use v6; sub f($x) { multi return($nv) { nextwith($nv /2);