[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Empty? No. Array? No. Has? Yes.
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 7 Jul 2013 06:31:00 +0200
2013/7/7 Sean Conner <sean@conman.org>:
> "nan" seems to behave in an implementation dependent manner:
>
>> n1=0/0
>> n2=0/0
>> print (n1, n2, n1==n2, n1==n1)
> nan nan false false
On the contrary. All implementations must do that. From the Lua Wiki:
NaN is the only value that doesn't equal itself. -- DavidManura
- References:
- Re: Empty? No. Array? No. Has? Yes., Andrew Starks
- Re: Empty? No. Array? No. Has? Yes., Tim Hill
- Re: Empty? No. Array? No. Has? Yes., Andrew Starks
- Re: Empty? No. Array? No. Has? Yes., Tim Hill
- Re: Empty? No. Array? No. Has? Yes., Andrew Starks
- Re: Empty? No. Array? No. Has? Yes., Rena
- Re: Empty? No. Array? No. Has? Yes., Jorge
- Re: Empty? No. Array? No. Has? Yes., Jose Torre-Bueno
- Re: Empty? No. Array? No. Has? Yes., Javier Guerra Giraldez
- Re: Empty? No. Array? No. Has? Yes., Andrew Starks
- Re: Empty? No. Array? No. Has? Yes., Sean Conner