lua-users home
lua-l archive

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


David Given wrote:
You could replace the ipairs look with simply #t (or table.getn(t) on 5.0), although that will only work for valid arrays (i.e. tables with non-nil numeric elements from 1 to n).

Isn't the whole point of the code to detect the size of a table when that's *not* the case?

Personally, I think this is a *massive* hole in Lua.

--
Lisa