lua-users home
lua-l archive

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


On Wed, Nov 17, 2010 at 08:13, Doug Currie <doug.currie@gmail.com> wrote:
>
> On Nov 16, 2010, at 11:51 PM, Alexander Gladysh wrote:
>
>> I'm looking for the Lua equivalent for this:
>>
>> http://www.boost.org/doc/libs/1_44_0/doc/html/tribool.html
>
> You can get a long way with using

> true := 1.0
> false := 0.0
> indeterminate := NaN

Nice!

But NaN is not a first-class-citizen in Lua.

I think that sooner or later I'll want to do t[indeterminate] = value.

Alexander.