[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: The "Is nil present in a table" problem
- From: "Jay Carlson" <nop@...>
- Date: Wed, 28 Nov 2001 09:45:19 -0500
"John Belmonte" <email@example.com> writes:
> > [The "is nil present in a table" problem]
> I don't think that's an adequate name for the problem. Nil should not be
> present in tables. Nil is what you assign to a key to remove it from a
> table. The problem is that Lua uses nil to mean false, so if you assign
> result of a boolean expression to a key you might obliterate that key.
> We've had a proposal on the table for dealing with this for a while.
> T. even made a patch for 4.0. Is it worth some attention?
Oops, yes, you're right; solving the false==nil issue would fix the XML-RPC