[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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" <jvb@prairienet.org> 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
the
> 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.
Edgar
> T. even made a patch for 4.0. Is it worth some attention?
> (http://lua-users.org/wiki/BooleanTypeProposal)
Oops, yes, you're right; solving the false==nil issue would fix the XML-RPC
problem nicely.
Jay