Hello,
when I use two records with the same structure,
how can they be distinguished? And how can
the correct type be choosed?
Example:
type complex = { re: float; im: float };
type foo = { re: float; im: float };
let x = { re =2.0; im = 55.0 };
The x here has type foo.
How can I choose type complex?
Doesn't that yield a mess, when calling
functions with that values?
I tried some things on the toplevel,
and it seems messy to me.
How will that be handled in Ocaml?
Is it not good to have two types with
same structure?
Ciao,
Oliver
-------------------
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