Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Why are arithmetic functions not polymorph?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: hermanns <jan_hermanns@g...>
Subject: [Caml-list] Why are arithmetic functions not polymorph?
Hello,

I'm new to OCaml, so I hope my question is not to stupid.

Can anybody explain to me why the arithmetic functions ('+', '-', ...) 
are not polymorph
(in the sense that they have floating point equivalents '+.', '-.', 
...).
I don't understand this, because comparison funtions ('<', '>', ...) 
are polymorph.
So, where is the problem with arithmetic functions?

regards, Jan

-------------------
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