lua-users home
lua-l archive

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


> I just noticed that indexing a table with nil as in the following session
> actually returns nil when the manual is explicit about the fact that nil
> and NaN are not allowed as keys.  It doesn't bother me really and I imagine
> it can be useful at times, but is this deliberate?  If so shouldn't it be
> documented or did I just miss it in the manual?

The manual could be more explicit about not allowing nil and NaN as keys
inside tables but allowing them in the index operation.

-- Roberto