lua-users home
lua-l archive

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


> 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