[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: nil isn't as unique in Lua 4.1
- From: Enrico Colombini <erix@...>
- Date: Tue, 15 Jan 2002 09:16:10 +0100
> One could solve the storable nil problem by removing the semantic that
> a["foo"] = nil, deletes the table value, and instead introduce a 'del
> a["foo"]' operation. Then there would be a new existance test, such as
> Python's a.has_key("foo"), or something similar.
If the problem here is only that of 'existing but empty' table entries,
this seems to me a simpler, cleaner solution than having multiple, slightly
different, 'false' values.
(anyway, I am only a C programmer that always felt comfortable with 0 ==
false)
Enrico