From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id B9C39BC48 for ; Thu, 28 Apr 2005 19:06:39 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3SH6dBH030132 for ; Thu, 28 Apr 2005 19:06:39 +0200 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 TAA07981 for ; Thu, 28 Apr 2005 19:06:38 +0200 (MET DST) Received: from kraid.nerim.net (smtp-104-thursday.nerim.net [62.4.16.104]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j3SH6cEl013880 for ; Thu, 28 Apr 2005 19:06:38 +0200 Received: from localhost (karryall.dnsalias.org [62.4.18.180]) by kraid.nerim.net (Postfix) with ESMTP id DE85E41D1C; Thu, 28 Apr 2005 19:06:36 +0200 (CEST) Date: Thu, 28 Apr 2005 19:06:37 +0200 (CEST) Message-Id: <20050428.190637.07633836.oandrieu@nerim.net> To: alex@barettadeit.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] Changes on equality between 3.06 and 3.08.3 From: Olivier Andrieu In-Reply-To: <4271122F.5090705@barettadeit.com> References: <20050428100252.GF31263@lami.univ-evry.fr> <4271122F.5090705@barettadeit.com> X-Mailer: Mew version 4.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 4271181F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 4271181E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 andrieu:01 andrieu:01 ijm:01 baretta:01 behaves:01 bool:01 pervasives:01 equality:01 closures:01 jussieu:01 defined:02 external:02 alex:03 probably:05 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: > Alex Baretta [Thu, 28 Apr 2005]: > Actually, an interesting question related to this one is why the > following line behaves as it does. > > # (==) (==) (==);; > - : bool = false Probably because == is defined by an "external" in pervasives.ml, not a regular function definition. So here, when you use (==), you're building three closures. -- Olivier