mirror of
https://github.com/CPunch/Cosmo.git
synced 2025-11-11 10:00:05 +00:00
made OP_ITER and OP_NEXT use CObjMethods
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user