Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!microsoft!curtj From: curtj@microsoft.UUCP (Curt JOHNSON) Newsgroups: comp.lang.c Subject: Re: do...while vs. repeat...until (was: Errors aren't that simple) Keywords: cycle forever Message-ID: <53842@microsoft.UUCP> Date: 29 Mar 90 01:51:36 GMT References: <16188@haddock.ima.isc.com> <9130009@hpavla.AVO.HP.COM> Reply-To: curtj@microsoft.UUCP (Curt JOHNSON) Organization: Microsoft Corp., Redmond WA Lines: 24 In article night@pawl.rpi.edu (Trip Martin) writes: | An interesting note that might give some perspective to this issue is how | Plus, a little-known language that I'm somewhat familiar with, handles loops. | Instead of having both while and do..while forms of loops, it uses one form | called cycle. Cycle is an infinite loop. You can then stick exit statements | anywhere in the loop (and then can be conditional, with both flavors of tests | supported). Conceptually, it's a more general way of handling loops. How 'bout: #define Cycle for(;;) 'tho I prefer #define forever for(;;) or #define ever (;;) // for ever { stuff... } [] -- Curt Johnson -- ...!uuent!microsoft!curtj #include