Fixed ipairs->pairs to make dict iteration work.
This commit is contained in:
parent
ba87104202
commit
60aa3f5fcf
@ -183,7 +183,7 @@ immediately:
|
||||
%continue_labels join= "\n::continue_\(nomsu "var_to_lua_identifier" [%value])::;"
|
||||
# This trashes the loop variables, just like in Python.
|
||||
set %code = ".."
|
||||
for key,value in ipairs(\(%iterable as lua)) do
|
||||
for key,value in pairs(\(%iterable as lua)) do
|
||||
\(%key as lua), \(%value as lua) = key, value;
|
||||
\(%body as lua statements)\
|
||||
..\%continue_labels
|
||||
|
Loading…
Reference in New Issue
Block a user