lua-users home
lua-l archive

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


t = {} table.insert(t, 2^32, 5) return t[0] --> 5

there are other interesting problems that vary from the same
fundamental problems (with the use of unchecked integers)

t = {1,2,3,4,5} table.insert(t, -1, 5) for k,v in pairs(t) do print(k,v) end

-- 
-Patrick Donnelly

"One of the lessons of history is that nothing is often a good thing
to do and always a clever thing to say."

-Will Durant