develooper Front page | perl.perl6.compiler | Postings from July 2008

[perl #56648] [BUG] rakudo loops in for-loop with arity 0 block

From:
Moritz Lenz
Date:
July 6, 2008 13:37
Subject:
[perl #56648] [BUG] rakudo loops in for-loop with arity 0 block
# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #56648]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56648 >


Rakudo as of r29098
$ ../../parrot perl6.pbc -e ' for 1 .. 2 -> { say 2 }'
2
2
2
2
...

A block with arity 0 shouldn't loop infinitely. I don't know what the
correct behaviour is, but I think it should consume one item per iteration.

Cheers,
Moritz

-- 
Moritz Lenz
http://moritz.faui2k3.org/ |  http://perl-6.de/



Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About