Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!duke!mcnc!ncsu!uvacs!mac From: mac@uvacs.UUCP Newsgroups: net.lang Subject: loop indexing Message-ID: <1122@uvacs.UUCP> Date: Thu, 12-Jan-84 12:17:47 EST Article-I.D.: uvacs.1122 Posted: Thu Jan 12 12:17:47 1984 Date-Received: Sat, 14-Jan-84 04:37:19 EST Lines: 11 Re: superstitions about FOR ... IN [ REVERSE ] .... LOOP ... END LOOP; It would be nice to have a repitition construct for those loops where it doesn't matter whether you count up or down. Something like Algol68's TO iteration count DO loop stuff OD On the other hand, sometimes you need a loop variable (e.g. array index) but don't care what order it runs. I don't recall seeing anything like this. This is something I'd like to be able to let the compiler decide. As it is, I'm forced to tell the compiler what order to use.