Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Large projects in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David J. Trombley <swampy@s...>
Subject: Re: [Caml-list] A problem with nan.

I also noticed
ref 1.0 = ref nan
evaluates true.

-dj

----- Original Message ----- 
From: "Jon Harrop" <jdh30@cam.ac.uk>
To: <caml-list@inria.fr>
Sent: Thursday, May 20, 2004 4:42 PM
Subject: Re: [Caml-list] A problem with nan.


> On Thursday 20 May 2004 12:56, sejourne kevin wrote:
> > ...
> > Can someone explain it?
>
> Are you asking, equivalently, why this happens:
>
> # 2.=nan;;
> - : bool = false
> # [2.]=[nan];;
> - : bool = true
>
> when "=" compares structures recursively so you'd expect
it to give the same
> answer in both cases?
>
> Cheers,
> Jon.
>
> -------------------
> To unsubscribe, mail caml-list-request@inria.fr Archives:
http://caml.inria.fr
> Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ:
http://caml.inria.fr/FAQ/
> Beginner's list:
http://groups.yahoo.com/group/ocaml_beginners
>

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners