Re: tribool
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: tribool
- From: Leo Razoumov <slonik.az@...>
- Date: 2010年11月17日 06:06:01 -0500
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--