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 GAA21919; Thu, 15 Jan 2004 06:11:41 +0100 (MET) 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 GAA21040 for ; Thu, 15 Jan 2004 06:11:39 +0100 (MET) Received: from herd.plethora.net (herd.plethora.net [205.166.146.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id i0F5Bc527202 for ; Thu, 15 Jan 2004 06:11:38 +0100 (MET) Received: from bhurt.plethora.net (bhurt.plethora.net [205.166.146.49]) by herd.plethora.net (8.11.6/8.10.1) with ESMTP id i0F5BUZ17766; Wed, 14 Jan 2004 23:11:31 -0600 (CST) Date: Thu, 15 Jan 2004 00:13:53 -0600 (CST) From: Brian Hurt X-X-Sender: bhurt@localhost.localdomain To: skaller cc: Ocaml Mailing List Subject: Re: [Caml-list] Stupid question In-Reply-To: <1074139041.7527.2.camel@localhost.localdomain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 stupid:01 inequality:01 habit:01 compiler:01 writting:01 polymorphic:01 comparison:02 comparison:02 wrote:03 inline:03 redirect:95 wondering:04 brian:06 brian:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On 15 Jan 2004, skaller wrote: > Well, <> is a polymorphic value comparison. > Whereas != is a physical inequality comparison. Yes. I was wondering why the compiler didn't catch that I was comparing booleans and thus it could inline the value comparison, and reduce it to the equivelent to !=. I've gotten into the habit of writting <> because I'm playing around with FP, and 1. <> 1. is false, while 1. != 1. is true. -- "Usenet is like a herd of performing elephants with diarrhea -- massive, difficult to redirect, awe-inspiring, entertaining, and a source of mind-boggling amounts of excrement when you least expect it." - Gene Spafford Brian ------------------- 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