[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Indexing a table with nil returns nil?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 9 Apr 2012 10:33:20 -0300
> 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