From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id C330DBC48 for ; Thu, 28 Apr 2005 18:41:13 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j3SGfD0P010906 for ; Thu, 28 Apr 2005 18:41:13 +0200 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 SAA07036 for ; Thu, 28 Apr 2005 18:41:12 +0200 (MET DST) Received: from mail.barettadeit.com (h213-255-109-130.albacom.net [213.255.109.130] (may be forged)) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3SGfCVB027434 for ; Thu, 28 Apr 2005 18:41:12 +0200 Received: from [10.0.0.10] (alex.barettalocal.com [10.0.0.10]) by mail.barettadeit.com (Postfix) with ESMTP id C0CC880382FD; Thu, 28 Apr 2005 18:41:11 +0200 (CEST) Message-ID: <4271122F.5090705@barettadeit.com> Date: Thu, 28 Apr 2005 18:41:19 +0200 From: Alex Baretta User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Olivier Michel Cc: caml-list@inria.fr, the MGS project Subject: Re: [Caml-list] Changes on equality between 3.06 and 3.08.3 References: <20050428100252.GF31263@lami.univ-evry.fr> In-Reply-To: <20050428100252.GF31263@lami.univ-evry.fr> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 42711229.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42711228.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; baretta:01 caml-list:01 ocaml:01 structurally:01 behaves:01 bool:01 baretta:01 wrote:01 exception:01 exception:01 equality:01 equality:01 michel:01 argument:01 argument:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: Olivier Michel wrote: > Hi dear ocamlers, > > I just noticed the following change in Ocaml between release 3.06 and 3.08.3, as far > as equality on records is concerned : > .. > # a = a;; > Exception: Invalid_argument "equal: functional value". Keep in mind that in 3.06 physical equality (==) implied structural equality (=). Now, (=) now longer checks for (==), so no functional value can be found to be structurally equal to any other functional value. The following line illustrates this point. # (=) (=) (=);; Exception: Invalid_argument "equal: functional value". Actually, an interesting question related to this one is why the following line behaves as it does. # (==) (==) (==);; - : bool = false Alex -- ********************************************************************* http://www.barettadeit.com/ Baretta DE&IT A division of Baretta SRL tel. +39 02 370 111 55 fax. +39 02 370 111 54 Our technology: The Application System/Xcaml (AS/Xcaml) The FreerP Project