lua-users home
lua-l archive

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


> I am interested to see an application/algorithm where an array with
> "nil" values is required, and it is inconvenient/impossible to solve
> it using sentinel values (like NoValue = {}) or more advanced data
> types built on top of table semantics.

Or plainly just keeping your own notion of length of the array, e.g.
in a field named "n". It's just that # does not apply to those arrays.