Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit e0113b0e03766f062210730003d0696cc1e276fa 1 parent a1ff263
@fperrad fperrad authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/builtins/builtins.pir
View
8 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:
Please sign in to comment.
Something went wrong with that request. Please try again.