caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Physical compare
@ 2005-11-23 19:20 Tom Hawkins
  2005-11-23 19:38 ` [Caml-list] " Jon Harrop
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Hawkins @ 2005-11-23 19:20 UTC (permalink / raw)
  To: caml-list

Is their a version of "compare" that is based on physical equality?  If 
not, how can I define one?  I tried:

let compareq a b = if a == b then 0 else if a > b then 1 else (-1)

But unfortunately, (>) is a structural comparison.

I need to make a Map where the keys are distinguished by the physical 
instance.

Thanks!

-Tom



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-24 15:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-23 19:20 Physical compare Tom Hawkins
2005-11-23 19:38 ` [Caml-list] " Jon Harrop
2005-11-23 19:49 ` Nicolas Cannasse
2005-11-24 15:33 ` Jean-Christophe Filliatre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).