Browse thread
[Caml-list] Weird behavior with nan's and min/max
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Yaron M. Minsky <yminsky@c...> |
| Subject: | Re: [Caml-list] Weird behavior with nan's and min/max |
On Fri, 2003-10-17 at 10:55, skaller wrote: > On Thu, 2003-10-16 at 23:16, Xavier Leroy wrote: > > > 1- Fix polymorphic equality so that it behaves like IEEE equality on floats, > > > 2- As J M Skaller proposed, change the behavior of polymorphic > > equality > > Doesn't the polymorphic comparison have to be a total order? This kind of wigs me out too. For example, do the set and map data structures depend on this total order property? What happens when I stick in a data structure which contains some floats somewhere in it, and some of those floats are nan's? Does the data structure continue to work at all? It totally wigs me out. I wish there was some sensible way around it. Probably the thing I would like best is for calculations that produce nans to throw exceptions. But from what I've heard so far, this doesn't appear to be possible. Oh well. y -- |--------/ Yaron M. Minsky \--------| |--------\ http://www.cs.cornell.edu/home/yminsky/ /--------| Open PGP --- KeyID B1FFD916 (new key as of Dec 4th) Fingerprint: 5BF6 83E1 0CE3 1043 95D8 F8D5 9F12 B3A9 B1FF D916 ------------------- 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