Hi, > type kinematic = { lin: Vec.t; ang: Vec.t } > > Which I've been using to represent a medley of physical attributes (force, > > momentum, velocity, etc.).
I second Stéphane's suggestion of using phantom types; moreover, I recommend you read an article that discusses them to some detail and covers their use for precisely this sort of problem: http://camltastic.blogspot.com/2008/05/phantom-types.html Cheers, Dario Teixeira _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs