caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tom Hawkins <tom@confluent.org>
To: caml-list@inria.fr
Subject: Physical compare
Date: Wed, 23 Nov 2005 13:20:03 -0600	[thread overview]
Message-ID: <4384C0E3.5030300@confluent.org> (raw)

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



             reply	other threads:[~2005-11-23 19:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-23 19:20 Tom Hawkins [this message]
2005-11-23 19:38 ` [Caml-list] " Jon Harrop
2005-11-23 19:49 ` Nicolas Cannasse
2005-11-24 15:33 ` Jean-Christophe Filliatre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4384C0E3.5030300@confluent.org \
    --to=tom@confluent.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).