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 PAA06959; Thu, 8 Jan 2004 15:11:58 +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 PAA06950 for ; Thu, 8 Jan 2004 15:11:57 +0100 (MET) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id i08EBt515053 for ; Thu, 8 Jan 2004 15:11:55 +0100 (MET) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1Aeat6-00058J-00 for ; Thu, 08 Jan 2004 14:11:52 +0000 Date: Thu, 8 Jan 2004 14:11:52 +0000 To: caml-list@inria.fr Subject: [Caml-list] Reason why 'for' doesn't work across floats? Message-ID: <20040108141152.GA19714@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; floats:01 floats:01 printf:01 freshmeat:01 crm:99 consultancy:99 ltd:98 int:01 float:02 'for':95 investment:94 type:07 type:07 www:91 www:91 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Is there a particular reason why I shouldn't be allowed to step over floats? # for r = 0. to 9. step 1. do printf "%f" r done;; -- This expression has type float but is here used with type int Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment http://www.winwinsales.co.uk/ - CRM improvement consultancy ------------------- 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