Permalink
Browse files

[Punie] use the opcode 'iter' instead of a instantiation of 'Iterator'

  • Loading branch information...
fperrad committed Jul 24, 2009
1 parent a1ff263 commit e0113b0e03766f062210730003d0696cc1e276fa
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/builtins/builtins.pir
@@ -246,12 +246,12 @@
.sub 'print'
.param pmc list :slurpy
- .local pmc iter
+ .local pmc it
- iter = new 'Iterator', list
+ it = iter list
iter_loop:
- unless iter goto iter_end
- $P0 = shift iter
+ unless it goto iter_end
+ $P0 = shift it
print $P0
goto iter_loop
iter_end:

0 comments on commit e0113b0

Please sign in to comment.