lua-users home
lua-l archive

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


On Thu, Apr 12, 2012 at 4:26 PM, Jose Torre-Bueno <jtorrebueno@cox.net> wrote:
> this says to me that nan is not a pseudo constant in the same way nil is.  I assume there is something subtle going on here.  Perhaps somebody can explain why this is so.

Correct, nan is not a pseudo constant. Infact, unless you make it
otherwise, nan isn't anything at all. It is a named global variable
like any other, and the default value for global variables is nil.

> =foo
nil
> =bar
nil
> =baz
nil
> =nan
nil