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 HAA23108; Mon, 28 Oct 2002 07:16:17 +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 HAA22941 for ; Mon, 28 Oct 2002 07:16:16 +0100 (MET) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com ([62.211.4.231]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9S6GF514310 for ; Mon, 28 Oct 2002 07:16:15 +0100 (MET) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id E7689273CB for ; Mon, 28 Oct 2002 07:15:28 +0100 (CET) Message-ID: <3DBCD600.2000307@baretta.com> Date: Mon, 28 Oct 2002 07:15:28 +0100 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: it, en MIME-Version: 1.0 To: ocaml Subject: Re: [Caml-list] On the equality of functional values References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk David Monniaux wrote: > On Sun, 27 Oct 2002, Alessandro Baretta wrote: > > > If I remember well, = is implemented by doing first a == (equality of > pointers) test, and returning true if that test succeeds; otherwise, > the more complex recursive equality test is performed, which fails with > an exception if it encounters functional values. > > So if x and y are the same closure, x=y succeeds and yields the true > value. Otherwise, it throws an exception. This is what I suspected. I wonder if this behavior conforms to specification, or if it is an incidental concequence of the implementation of (=). Alex ------------------- 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