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 VAA14905; Mon, 11 Aug 2003 21:57:51 +0200 (MET DST) 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 VAA17037 for ; Mon, 11 Aug 2003 21:57:50 +0200 (MET DST) Received: from nitro.isi.edu (nitro.isi.edu [128.9.208.207]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h7BJvmT22325 for ; Mon, 11 Aug 2003 21:57:49 +0200 (MET DST) Received: from moussor.isi.edu (moussor.isi.edu [128.9.208.41]) by nitro.isi.edu (8.11.6p2/8.11.2) with ESMTP id h7BJvkW11904; Mon, 11 Aug 2003 12:57:46 -0700 (PDT) Received: from localhost (hdaume@localhost) by moussor.isi.edu (8.9.3/8.8.6) with ESMTP id MAA08679; Mon, 11 Aug 2003 12:57:46 -0700 (PDT) X-Authentication-Warning: moussor.isi.edu: hdaume owned process doing -bs Date: Mon, 11 Aug 2003 12:57:46 -0700 (PDT) From: Hal Daume III To: Michal Moskal cc: Tahir H Butt , caml-list@inria.fr Subject: Re: [Caml-list] comparing references In-Reply-To: <20030811192552.GA8711@roke.freak> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 addresses:96 types:03 stuff:05 messing:06 i'm:07 comparing:09 iii:90 references:11 compare:13 trees:14 two:21 edu:22 good:23 need:23 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > I ask because my sum > > types can be big (I'm dealing with trees), so it would be good if when I > > want to check if two trees are the same, all I need to do is look at the > > references to them. > > Use == if you want to compare addresses. How much do you need to worry about, ex., the GC moving stuff around and messing this up? - Hal ------------------- 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