lua-users home
lua-l archive

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


On Tue, Nov 16, 2010 at 23:51, Alexander Gladysh <agladysh@gmail.com> wrote:
> On Wed, Nov 17, 2010 at 07:42, HyperHacker <hyperhacker@gmail.com> wrote:
>> On Tue, Nov 16, 2010 at 21:38, Alexander Gladysh <agladysh@gmail.com> wrote:
>
>>> Anyone have a module to work with 3-state boolean logic (true, false,
>>> indeterminate) in Lua?
>
>>> Otherwise: any suggestions on module design?
>
>
> (Not sure if using "nil" as indeterminate value is a good thing --
> perhaps it is.)
>
> Alexander.
>

No, it is not. "Not Indeterminate" should evaluate to  "Indeterminate" while
"not nil" is "true" in Lua.

--Leo--