[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tostring vs. nan, inf
- From: Peter Cawley <lua@...>
- Date: Thu, 12 Apr 2012 16:30:15 +0100
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
- References:
- tostring vs. nan, inf, Alexander Gladysh
- Re: tostring vs. nan, inf, Luiz Henrique de Figueiredo
- Re: tostring vs. nan, inf, Alexander Gladysh
- Re: tostring vs. nan, inf, Martin Guy
- Re: tostring vs. nan, inf, Luiz Henrique de Figueiredo
- Re: tostring vs. nan, inf, Jose Torre-Bueno