From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA27160; Sat, 28 Feb 2004 00:00:10 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA27108 for ; Sat, 28 Feb 2004 00:00:09 +0100 (MET) Received: from nemerle.org (lilith.ii.uni.wroc.pl [156.17.4.7]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1RN08ae020389 for ; Sat, 28 Feb 2004 00:00:08 +0100 Received: from malekith by nemerle.org with local (Exim 4.24) id 1Awqxi-0003g9-L6 for caml-list@inria.fr; Sat, 28 Feb 2004 00:00:07 +0100 Date: Fri, 27 Feb 2004 23:59:31 +0100 From: Michal Moskal To: caml-list@inria.fr Subject: Re: [Caml-list] Semantics of physical equality Message-ID: <20040227225931.GA9161@roke.freak> Mail-Followup-To: caml-list@inria.fr References: <01C3FD3E.290EEEB0.kmillikin@atcorp.com> <20040227213229.GA2962@ours.starynkevitch.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040227213229.GA2962@ours.starynkevitch.net> User-Agent: Mutt/1.4.1i X-PGP-Fingerprint: CF89 1B14 11BE 1CC9 2CA3 7497 5E32 69B4 BC71 B4C2 X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; michal:01 moskal:01 malekith:01 pld-linux:01 caml-list:01 2004:99 basile:01 2004:99 0600,:01 non-mutable:01 pervasives:01 michal:01 moskal:01 malekith:01 htmlman:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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