bug in table.insert
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: bug in table.insert
- From: "Patrick Donnelly" <batrick.donnelly@...>
- Date: 2008年1月23日 02:19:05 -0700
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