From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr 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 BA504BC0B for ; Tue, 30 Jan 2007 22:02:28 +0100 (CET) Received: from outmx020.isp.belgacom.be (outmx020.isp.belgacom.be [195.238.4.201]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0UL2SOG019642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 30 Jan 2007 22:02:28 +0100 Received: from outmx020.isp.belgacom.be (localhost [127.0.0.1]) by outmx020.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22) with ESMTP id l0UL29NC003920 for ; Tue, 30 Jan 2007 22:02:09 +0100 (envelope-from ) Received: from poincare.swapping.umh.ac.be (153.132-240-81.adsl-dyn.isp.belgacom.be [81.240.132.153]) by outmx020.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22) with ESMTP id l0UL27Ou003900; Tue, 30 Jan 2007 22:02:07 +0100 (envelope-from ) Received: from [127.0.0.1] (helo=localhost) by poincare.swapping.umh.ac.be with esmtp (Exim 4.63) (envelope-from ) id 1HC077-0002DO-LS; Tue, 30 Jan 2007 22:02:01 +0100 Date: Tue, 30 Jan 2007 22:01:41 +0100 (CET) Message-Id: <20070130.220141.72363004.Christophe.Troestler@umh.ac.be> To: "O'Caml Mailing List" Subject: Re: [Caml-list] Equality of functional values From: Christophe TROESTLER In-Reply-To: <20070130204109.GB15659@gaia.cc.gatech.edu> References: <1170189001.21265.9.camel@localhost.localdomain> <20070130204109.GB15659@gaia.cc.gatech.edu> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoLKJBq0JBY9:}8v|j Organization: Universite de Mons-Hainaut (http://math.umh.ac.be/an/) X-Mailer: Mew version 5.1.52 on Emacs 22.0.93 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 45BFB264.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; christophe:01 troestler:01 christophe:01 troestler:01 umh:01 gerd:01 stolpmann:01 pervasives:01 2007,:98 equality:01 equality:01 wrote:01 caml-list:01 functional:02 suggestion:03 On Tue, 30 Jan 2007, Fernando Alegre wrote: > > Add a new operator =. for floating-point-aware equality that works on > everything the way = works now. > > Would not this make everyone happy? No. Why not take the suggestion of Gerd Stolpmann and declare let ( = ) x y = Pervasives.compare x y = 0 at the beginning of your files ? ChriS