lua-users home
lua-l archive

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


> but.... that 'array part' is just an optimization

That's a crucial point that seems to be frequently lost: The 'array
part' does not need to store all values at keys 1..#t, even if t is a
proper sequence. Part of the sequence may be in the 'hash part'. So,
t->sizearray is not directly related to #t.