lua-users home
lua-l archive

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


> For example, it's quite easy for a table to know exactly how many keys
> it contains. One extra integer in the struct plus a test whether 'nil' is being
> assigned when it's not a new index or non-nil when it is. That feature has
> been requested on this list. It has not been implemented in core Lua.
> There's a tradeoff on how useful it is versus what it costs, and the
> decision went against it. Fair enough.

I hope you are not spreading the myth that this feature would solve the
conundrum of table length.

-- Roberto