[clean-list] Re: I AM LUNATIC (was: Easter Egg) (Siegfried Gonzi)

Ronny Wichers Schreur ronny@cs.kun.nl
Fri, 05 Oct 2001 10:34:19 +0200


Siegfried Gonzi wrote (to the Clean Discussion List) 

>[my program] delivers on the Mac and Clean 1.3.1 after reading it
>in an array:
>
>({{12.34,123.34,7.23,2.43,23.34},{3.45,2.34,3.7,2.34,23.45},{2.76,4.76,2.34,6.5,2.34},{2.76,4.76,2.34,6.5,2.34},{7.56,23.34,23.4,2.43,23.34}},65536)
>
>
>delivers on Windows NT 4 and Clean 1.3.3:
>
>({{NAN,123.34,7.23,2.43,23.34},{3.45,2.34,3.7,2.34,23.45},{2.76,4.76,2.34,6.5,2.34},{2.76,4.76,2.34,6.5,2.34},{7.56,23.34,23.4,2.43,23.34}},65536)

I don't get the NAN as the first element, but 12.34 (as on the Mac).

>and on the SunOS 8 and Clean 1.3.3:
>
>({{9.45874455237136e-13,5.34741321642642e-313, [..]

This is a bug with arrays of unboxed Reals on the Sun. It's not a problem
with reading reals, but a more basic problem. For example
-------------------------
module t
import StdEnv
Start ::  (Int, {#Real})
Start
    =   usize {1.0}
-------------------------
also produces the wrong result. We'll fix this in the next release.



Cheers,

Ronny Wichers Schreur