* [Caml-list] structural comparison of records
@ 2004-03-06 21:46 Eric C. Cooper
0 siblings, 0 replies; only message in thread
From: Eric C. Cooper @ 2004-03-06 21:46 UTC (permalink / raw)
To: OCaml List
Is it safe to depend on the fact that structural comparison of records
proceeds in the order of the record fields? The implementation does
this, but it seems to be left unspecified in the manual.
For example, will
type version = { major: int; minor: int }
always be ordered as expected? Or should I define my own comparison
function to be safe?
--
Eric C. Cooper e c c @ c m u . e d u
-------------------
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-06 21:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-06 21:46 [Caml-list] structural comparison of records Eric C. Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox