Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Michal Moskal <malekith@pld-linux.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Semantics of physical equality
Date: Fri, 27 Feb 2004 23:59:31 +0100	[thread overview]
Message-ID: <20040227225931.GA9161@roke.freak> (raw)
In-Reply-To: <20040227213229.GA2962@ours.starynkevitch.net>

On Fri, Feb 27, 2004 at 10:32:29PM +0100, Basile STARYNKEVITCH wrote:
> On Fri, Feb 27, 2004 at 02:29:50PM -0600, Kevin S. Millikin wrote:
> > I'm trying to figure out what I can rely on about physical equality. 
> >  I've checked the OCaml manual but can't seem to find what I want to 
> > know.
> > 
> > Presume
> > 
> > # type t = V0 | V1 of int;;
> > type t = V0 | V1 of int
> > 
> > # V0 == V0;;
> > - : bool = true
> > 
> > V0's are the same.  Is this guaranteed?
> 
> Yes.

Is it?

"On non-mutable structures, the behavior of (==) is
implementation-dependent;" [1]

[1] http://caml.inria.fr/ocaml/htmlman/libref/Pervasives.html

-- 
: Michal Moskal :: http://www.kernel.pl/~malekith :: GCS !tv h e>+++ b++
: When in doubt, use brute force. -- Ken Thompson :: UL++++$ C++ E--- a?

-------------------
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-27 23:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-27 20:29 Kevin S. Millikin
2004-02-27 21:32 ` Basile STARYNKEVITCH
2004-02-27 22:59   ` Michal Moskal [this message]
2004-02-28  9:40     ` sejourne kevin
2004-02-28  9:55       ` Andreas Rossberg
2004-02-28 10:07         ` Michal Moskal
2004-02-28  9:56       ` Michal Moskal
2004-02-28 10:21         ` Andreas Rossberg
2004-02-28 10:34           ` Michal Moskal
2004-02-28 10:45             ` Andreas Rossberg
2004-02-28 11:25               ` Michal Moskal
2004-02-27 23:16 Kevin S. Millikin
2004-02-27 23:48 ` Michal Moskal

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=20040227225931.GA9161@roke.freak \
    --to=malekith@pld-linux.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