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 JAA32493; Wed, 7 Mar 2001 09:57:01 +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 JAA32580 for ; Wed, 7 Mar 2001 09:57:01 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f278uxj23577; Wed, 7 Mar 2001 09:56:59 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA32368; Wed, 7 Mar 2001 09:56:58 +0100 (MET) Date: Wed, 7 Mar 2001 09:56:58 +0100 From: Xavier Leroy To: Olivier Andrieu Cc: Alan Schmitt , caml-list@inria.fr, Juergen Pfitzenmaier Subject: Re: [Caml-list] Comparison of functional values Message-ID: <20010307095658.A31660@pauillac.inria.fr> References: <15013.23546.425793.7568@akasha.ijm.jussieu.fr> <20010307062028.O7121@alan-schm1p.inria.fr> <200103062208.XAA13315@sunstroke.informatik.uni-tuebingen.de> <20010307062028.O7121@alan-schm1p.inria.fr> <15013.63022.363394.271012@akasha.ijm.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: <15013.63022.363394.271012@akasha.ijm.jussieu.fr>; from andrieu@oxygene.ijm.jussieu.fr on Wed, Mar 07, 2001 at 09:49:50AM +0100 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > What I meant actually, was a «physical compare». I found out that > this (crude) C function works : > > value phys_comp(value a, value b) > { > if(a return Val_int(-1) ; > else if(a>b) > return Val_int(+1) ; > else > return Val_int(0); > } No, it does not: the GC can copy heap blocks and change the relative ordering of their memory addresses. You really need to pair your functions with unique identifying integers. - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr