Skip to content

Commit

Permalink
Some next/last bugfixes for .map .
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jul 24, 2010
1 parent da9910a commit 27f7a5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/builtins/MapIter.pir
Expand Up @@ -52,10 +52,11 @@ exceptions here. Perl 6 source would be something like:
value = getattribute exception, 'payload'
push reify, value
type = getattribute exception, 'type'
if type == .CONTROL_LOOP_LAST goto done
if type == .CONTROL_LOOP_LAST goto iter_reified
if type != .CONTROL_LOOP_REDO goto iter_next
list.'unshift'(args)
iter_next:
.local pmc nextiter
nextiter = new ['MapIter']
setattribute nextiter, '&!block', block
setattribute nextiter, '@!list', list
Expand Down

0 comments on commit 27f7a5b

Please sign in to comment.