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 OAA24198; Wed, 4 Jun 2003 14:35:39 +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 OAA24298 for ; Wed, 4 Jun 2003 14:35:38 +0200 (MET DST) 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 h54CZbT18967 for ; Wed, 4 Jun 2003 14:35:37 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19NXUP-0004Ow-00 for ; Wed, 04 Jun 2003 13:35:37 +0100 Date: Wed, 4 Jun 2003 13:35:37 +0100 To: caml-list@inria.fr Subject: [Caml-list] Why no 'step' in for loops? Message-ID: <20030604123537.GE7004@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-Spam: no; 0.00; 'step':99 freshmeat:01 ltd:98 debug:01 london:97 arch:02 perl:03 emulate:03 ugly:05 red:94 reusable:06 loop:06 java:07 discussion:08 www:91 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Am I missing something? for i = 0 to 100 step 10 ... I know I can emulate it my having another let-binding inside the loop, but that's just ugly and hard to debug. Rich. -- Richard Jones, Red Hat Inc. (London) and Merjis Ltd. http://www.merjis.com/ http://www.annexia.org/ Freshmeat projects: http://freshmeat.net/users/rwmj MONOLITH is an advanced framework for writing web applications in C, easier than using Perl & Java, much faster and smaller, reusable widget-based arch, database-backed, discussion, chat, calendaring: http://www.annexia.org/freeware/monolith/ ------------------- 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