lua-users home
lua-l archive

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


On 05/02/2017 04:01 PM, Soni L. wrote:
> The truth is, v=t[nil] and t[nil]=v both are valid Lua code, except the
> latter errors because *a nil index cannot exist*. More specifically, you
> cannot *create* a nil index, but you can check for its existence. Same
> for NaN.

Did you tried metatables to override this behavior?

-- Martin