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 0F8F6BC0B for ; Tue, 30 Jan 2007 21:41:23 +0100 (CET) Received: from sark4.cc.gatech.edu (sark4.cc.gatech.edu [130.207.7.19]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0UKfLpT014686 for ; Tue, 30 Jan 2007 21:41:22 +0100 Received: from gaia.cc.gatech.edu (gaia.cc.gatech.edu [130.207.3.8]) by sark4.cc.gatech.edu (8.13.6/8.12.8) with ESMTP id l0UKf9bi008470; Tue, 30 Jan 2007 15:41:10 -0500 (EST) Received: (from fernando@localhost) by gaia.cc.gatech.edu (8.13.6/8.12.8) id l0UKf90a023828; Tue, 30 Jan 2007 15:41:09 -0500 (EST) Date: Tue, 30 Jan 2007 15:41:09 -0500 From: Fernando Alegre To: Gerd Stolpmann Cc: Tom , caml-list@yquem.inria.fr, Jacques Carette , Chris King Subject: Re: [Caml-list] Equality of functional values Message-ID: <20070130204109.GB15659@gaia.cc.gatech.edu> References: <45BF691B.8090506@mcmaster.ca> <875c7e070701300923r362b1032sac4125fd2879f8ae@mail.gmail.com> <1170189001.21265.9.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1170189001.21265.9.camel@localhost.localdomain> User-Agent: Mutt/1.4.2.1i X-Miltered: at concorde with ID 45BFAD71.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; 0100,:01 gerd:01 stolpmann:01 pervasives:01 equality:01 equality:01 wrote:01 caml-list:01 functional:02 let:03 structural:04 tue:06 fernando:06 fernando:06 alegre:08 Maybe what should be in the wait list is the following: Keep == as it is now Revert = to its previous behavior: first check physical then structural Add a new operator =. for floating-point-aware equality that works on everything the way = works now. Would not this make everyone happy? Fernando On Tue, Jan 30, 2007 at 09:30:01PM +0100, Gerd Stolpmann wrote: > But > > let equal x y = > Pervasives.compare x y = 0 > > works!