lua-users home
lua-l archive

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


It's worth considering as a feature request that all tables have an
implicit member, called something like _rows, which is the number of
rows in the table. Or at least a new function like GetLength() or
something. This seems incredibly useful, and would be a boon for
performance for people that need to know these sorts of things without
iterating over all table elements all the time (or having to modify
tables they don't own to cache it). Lua already has this information
readily available. Why not expose it?

Curt