lua-users home
lua-l archive

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


> Unluckily you chose the one value that cannot be used to index a table.
> nil cannot be used to index a table.

I was hoping someone would say that :)

> But you could create a nonce and use that.

Indeed. But even less profligate would be to use the table's metatable 
slot.
That's just sitting there occupying space if it is not used. And it 
actually
perfectly captures the concept of tagtype.