lua-users home
lua-l archive

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


> It can also be used to build a table that appears to accept nil or NaN
> values as keys !

In fact, it seems that this trick only fully works on Lua 5.2.
On Lua 5.1, the __index metamethod is called for nil and NaN, but not
__newindex.
Anyway, I was very surprised to make it work.