Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!seismo!harpo!ihnp4!inuxc!pur-ee!uiucdcs!parsec!ctvax!uokvax!andree From: andree@uokvax.UUCP Newsgroups: net.lang Subject: Re: loop indexing - (nf) Message-ID: <5017@uiucdcs.UUCP> Date: Fri, 20-Jan-84 23:08:14 EST Article-I.D.: uiucdcs.5017 Posted: Fri Jan 20 23:08:14 1984 Date-Received: Sat, 21-Jan-84 23:24:09 EST Lines: 22 #R:uvacs:-112200:uokvax:9000022:000:616 uokvax!andree Jan 19 19:16:00 1984 The iterators fortune!norskog describes are almost identical to the generators of CLU (someone more familiar with CLU please correct me if I'm wrong). On the other hand, the full TO loop syntax from ALGOL68 (as I remember it) is: [FOR var] [FROM count] TO count [STEP size] DO fragment OD The only required part was the TO count, which caused fragment to be executed count times. All the others could be added at will, giving starting point, step size, and a variable if you needed it in the loop. I like it much better than any other counter/loop I've seen. If only it didn't have that DO OD pair.