caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jed Davis <jdev@panix.com>
To: caml-list@inria.fr
Subject: [Caml-list] Re: Semantics of physical equality
Date: Sat, 28 Feb 2004 01:28:52 -0500	[thread overview]
Message-ID: <tgnsmgvbtuj.fsf@cumulus.xlerb.net> (raw)
In-Reply-To: <20040227234838.GA12573@roke.freak>

Michal Moskal <malekith@pld-linux.org> writes:

> On Fri, Feb 27, 2004 at 05:16:06PM -0600, Kevin S. Millikin wrote:
>> In the current problem, it can save me a great
>> deal of effort involved in generating temporary identifiers that are
>> guaranteed to be unique, and in wrapping library data structures that I
>> am unwilling to change in order merely to tag them.
>
> type t = V of int ref
>
> let t1 = V (ref 0)
> let t2 = V (ref 0)
>
> In this case you can assume t1 != t2. If it is not a sum type, but
> record type, you can use record with at least one mutable field.

Hm:

type t = unit ref
let t1 : t = ref ()
let t2 : t = ref ()
let mt : _ -> t = ref


-- 
[Jed Davis]              A098 903E 9B9A DEF4 168F  AA09 BF07 807E F336 59F9
 <jdev@panix.com>                                               0xF33659F9
  "But life wasn't yes-no, on-off.  Life was shades of gray, and rainbows
   not in the order of the spectrum." -- L. E. Modesitt, Jr., _Adiamante_

-------------------
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


      reply	other threads:[~2004-02-29 19:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-27 23:16 [Caml-list] " Kevin S. Millikin
2004-02-27 23:48 ` Michal Moskal
2004-02-28  6:28   ` Jed Davis [this message]

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=tgnsmgvbtuj.fsf@cumulus.xlerb.net \
    --to=jdev@panix.com \
    --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).