[perl #60604] closure in grep?

2008-11-25 Thread Patrick R. Michaud via RT
Now fixed in r33193: $ cat 60604 class A { method foo (@a) { @a.grep: { say @a }; # just for example, real code not so pointless } } my $o = A.new; $o.foo(['foo']); # foo $o.foo([1, 2]); # foo $ ./parrot perl6.pbc 60604 foo 1 2 1 2 $ Thanks! Pm

[perl #60604] closure in grep?

2008-11-18 Thread via RT
# New Ticket Created by Ilya Belikin # Please include the string: [perl #60604] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60604 > Hi! I start that message like bug report, but I have doubt. example: class A { met

[perl #60604] closure in grep?

2008-11-17 Thread Patrick R. Michaud via RT
On Mon Nov 17 01:51:40 2008, ihrd wrote: > Hi! > I start that message like bug report, but I have doubt. > > example: > > class A { > method foo (@a) { > @a.grep: { say @a }; # just for example, real code not so pointless > } > } > > my $o = A.new; > > $o.foo(['foo']); # foo > $