Browse thread
[Caml-list] structural comparison of records
- Eric C. Cooper
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Eric C. Cooper <ecc@c...> |
| Subject: | [Caml-list] structural comparison of records |
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