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 CAA31697; Sat, 28 Feb 2004 02:00:07 +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 CAA32272 for ; Sat, 28 Feb 2004 02:00:06 +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 i1S105ae000441 for ; Sat, 28 Feb 2004 02:00:05 +0100 Received: from malekith by nemerle.org with local (Exim 4.24) id 1Awspp-0006gY-3a for caml-list@inria.fr; Sat, 28 Feb 2004 02:00:05 +0100 Date: Sat, 28 Feb 2004 00:48:38 +0100 From: Michal Moskal To: "caml-list@inria.fr" Subject: Re: [Caml-list] Semantics of physical equality Message-ID: <20040227234838.GA12573@roke.freak> Mail-Followup-To: "caml-list@inria.fr" References: <01C3FD55.6370F320.kmillikin@atcorp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01C3FD55.6370F320.kmillikin@atcorp.com> 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 0600,:01 michal:01 moskal:01 malekith:01 kernel:01 semantics:01 equality:01 mutable:01 int:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. -- : 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