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 LAA14694; Sat, 28 Feb 2004 11:35:13 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA03736 for ; Sat, 28 Feb 2004 11:35:12 +0100 (MET) Received: from nemerle.org (lilith.ii.uni.wroc.pl [156.17.4.7]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i1SAZGIq028394 for ; Sat, 28 Feb 2004 11:35:17 +0100 Received: from malekith by nemerle.org with local (Exim 4.24) id 1Ax1oM-0000eQ-T3; Sat, 28 Feb 2004 11:35:10 +0100 Date: Sat, 28 Feb 2004 11:34:35 +0100 From: Michal Moskal To: Andreas Rossberg Cc: caml-list@inria.fr Subject: Re: [Caml-list] Semantics of physical equality Message-ID: <20040228103435.GA15099@roke.freak> Mail-Followup-To: Andreas Rossberg , caml-list@inria.fr References: <20040227225931.GA9161@roke.freak> <20040228094034.81565.qmail@web41905.mail.yahoo.com> <20040228095652.GA10435@roke.freak> <009401c3fde4$a4f58330$404a06d5@wiko> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <009401c3fde4$a4f58330$404a06d5@wiko> User-Agent: Mutt/1.4.1i X-PGP-Fingerprint: CF89 1B14 11BE 1CC9 2CA3 7497 5E32 69B4 BC71 B4C2 X-Miltered: at nez-perce 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 rossberg:01 pervasives:01 michal:01 moskal:01 malekith:01 htmlman:01 kernel:01 semantics:01 ints:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, Feb 28, 2004 at 11:21:35AM +0100, Andreas Rossberg wrote: > > But both r.a and r.b are ints, so it is always OK (== and = are the same > > on ints). > > That is what the current implementation does, but it is not guaranteed. On integers and characters, physical equality is identical to structural equality. [1] It depends what you mean by ,,guaranteed'' though. [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