lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


So, you can try this:


j = 1e4
co = coroutine.create(function() t = {} for i = 1, j do t[i] = i end return t end)
b, tt = coroutine.resume(co)
print(b,unpack(tt))


It works im my computer.

[]'s

Marco Antonio Abreu
IT Quality Systems
mabreu@itquality.com.br
http://www.itquality.com.br