made OP_ITER and OP_NEXT use CObjMethods

This commit is contained in:
2020-12-16 03:51:50 -06:00
parent e5eca7bed6
commit eede892eb0
4 changed files with 30 additions and 24 deletions

View File

@@ -17,6 +17,9 @@ proto Range
end
end
for i, x in Range(10) do
print("was " .. i .. ", now " .. x)
end
local total = 0
for i, x in Range(1000000) do
total = total + i
end
print("total: " .. total)