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 KAA03459; Fri, 8 Oct 2004 10:15:01 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 KAA03431 for ; Fri, 8 Oct 2004 10:15:00 +0200 (MET DST) Received: from ext.lri.fr (ext.lri.fr [129.175.15.4]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i987cxRY001372 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 8 Oct 2004 09:38:59 +0200 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id 258EC19E6F8; Fri, 8 Oct 2004 09:38:59 +0200 (CEST) Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21579-08; Fri, 8 Oct 2004 09:38:59 +0200 (CEST) Received: from smtp.lri.fr (serveur3-5 [129.175.3.5]) by ext.lri.fr (Postfix) with ESMTP id 1327E19E6DE; Fri, 8 Oct 2004 09:38:59 +0200 (CEST) Received: from pc8-142 (pc8-142 [129.175.8.142]) by smtp.lri.fr (Postfix) with ESMTP id 6192ECEE10; Fri, 8 Oct 2004 09:38:58 +0200 (CEST) Received: from filliatr by pc8-142 with local (Exim 3.36 #1 (Debian)) id 1CFpL8-00053z-00; Fri, 08 Oct 2004 09:38:58 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16742.17426.954135.845875@gargle.gargle.HOWL> Date: Fri, 8 Oct 2004 09:38:58 +0200 To: Christophe Raffalli Cc: caml-list Subject: Re: [Caml-list] Are you sure the new "=" of 3.08 is good ? In-Reply-To: <4165B1A5.9040208@univ-savoie.fr> References: <4165B1A5.9040208@univ-savoie.fr> X-Mailer: VM 7.18 under Emacs 21.3.1 From: Jean-Christophe Filliatre X-Virus-Scanned: by amavisd-new at lri.fr X-Miltered: at nez-perce with ID 41664413.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 filliatre:01 filliatre:01 lri:01 raffalli:01 phox:01 prover:01 floats:01 floats:01 pervasives:01 byterun:01 christophe:01 ocaml:01 equality:01 equality:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Christophe Raffalli writes: > > I spend one complete day to adapt Phox (my theorem prover) to 3.08 > because the new = does not check first physical equality. Indeed, and it was mentioned in Ocaml 3.08 changes: ====================================================================== * Revised handling of NaN floats in polymorphic comparisons. The polymorphic boolean-valued comparisons (=, <, >, etc) now treat NaN as uncomparable, as specified by the IEEE standard. The 3-valued comparison (compare) treats NaN as equal to itself and smaller than all other floats. As a consequence, x == y no longer implies x = y but still implies compare x y = 0. ====================================================================== but Pervasives.compare still checks for physical equality first. It's clear when having a look at byterun/compare.c. -- Jean-Christophe ------------------- 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