|
> According to the Lua reference manual, the length operator (#) is supposed > to return the highest consecutive numerical index. This means the above code > SHOULD return 2, because 3 is nil. No, it doesnt say that. it can be any n so that t[n] ~= nil and t[n+1] == nil or 1 if t[1] == nil.