Float>>nan

Alejandro F. Reimondo aleReimondo at smalltalking.net
Sat Sep 8 15:30:37 UTC 2007


> Ok any reason for that?
Yes. "nan" is not an object (it does not preserve identity),
 it is something that can be named and that preserve
 behavior (we can draw/attach an interface for/to it),
 those properties does not make it an object.

Ale.



----- Original Message ----- 
From: "Mathieu Suen" <mathk.sue at gmail.com>
To: "The general-purpose Squeak developers list" 
<squeak-dev at lists.squeakfoundation.org>
Sent: Saturday, September 08, 2007 9:48 AM
Subject: Re: Float>>nan


> Ok any reason for that?
>
> Mth
>
>
>
> On Sep 8, 2007, at 12:24 PM, Lukas Renggli wrote:
>
>>> I have a strange bug:
>>>
>>> Float nan = Float nan -> false
>>
>> According to the standard NaN is not be equal to anything,  including 
>> itself.
>>
>> Check: http://en.wikipedia.org/wiki/IEEE_754
>>
>> Lukas
>>
>> -- 
>> Lukas Renggli
>> http://www.lukas-renggli.ch
>>
>
> 




More information about the Squeak-dev mailing list