This site is updated infrequently. For up-to-date information, please visit the new OCaml website at ocaml.org.

[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: 2003-05-22 (22:31) From: hermanns 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

```