lua-users home
lua-l archive

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

On 1/3/11, Axel Kittenberger <> wrote:
>> O(1) implementation is possible if really needed, requires work on
>> __newindex too.
> I really want to see that! Cause I doubt it.

It also requires the use of proxy tables (to decrement counter on
assignment from non-nil to nil).

In the end, the table is a building block; there are a lot of corner
cases when one tries to use them as a particular data structure.