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 HAA07981; Mon, 3 Sep 2001 07:52:08 +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 HAA08045 for ; Mon, 3 Sep 2001 07:52:07 +0200 (MET DST) Received: from smtp.nwlink.com (smtp.nwlink.com [209.20.130.57]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f835q5129558 for ; Mon, 3 Sep 2001 07:52:06 +0200 (MET DST) Received: from ip178.usw22.rb1.bel.nwlink.com (ip178.usw22.rb1.bel.nwlink.com [207.202.195.178]) by smtp.nwlink.com (8.9.3/8.9.1) with SMTP id WAA21919 for ; Sun, 2 Sep 2001 22:50:14 -0700 (PDT) Received: (qmail 22628 invoked by uid 500); 3 Sep 2001 05:51:40 -0000 Date: Sun, 2 Sep 2001 22:51:40 -0700 From: Michael Leary To: caml Subject: Re: [Caml-list] function type confusion (using let) Message-ID: <20010902225140.A22597@ip178.usw22.rb1.bel.nwlink.com> References: <20010902222555.A22545@ip178.usw22.rb1.bel.nwlink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010902222555.A22545@ip178.usw22.rb1.bel.nwlink.com>; from leary@nwlink.com on Sun, Sep 02, 2001 at 10:25:55PM -0700 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I always think of something right after I ask... which is why I ask, I suppose... Well, this compiles, but looks funny: let normr r = let x = mod_float r pi2 in match x > 0.0 with | true -> if x > pi then -.pi2 +. x else x | false -> if x < -.pi then pi2 +. x else x Is there a different way? -- ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr