Path: utzoo!attcan!uunet!husc6!uwvax!tank!ncar!gatech!hubcap!ncrcae!PEDEV!rogerson From: rogerson@PEDEV.Columbia.NCR.COM (rogerson) Newsgroups: comp.lang.c Subject: Re: new do-while syntax Message-ID: <2330@PEDEV.Columbia.NCR.COM> Date: 22 Dec 88 15:21:05 GMT References: <3049@arcturus> <864@calvin.EE.CORNELL.EDU> <1716@buengc.BU.EDU> <8562@alice.UUCP> <139@bms-at.UUCP> Reply-To: rogerson@PEDEV.Columbia.NCR.COM () Organization: NCR Corp., Engineering & Manufacturing - Columbia, SC Lines: 29 Actor, an OOPS programming language for Microsoft Windows, uses the following construct for controlling loops: loop ... while ( ) ... endloop To get the normal while-do or do-while it would look like: loop while ( ) /* while - do */ ... endloop and loop /* do - while */ ... while ( ) endloop This is much more readable then the proposed C version, but then it would be incompatible with current C. A simple solution to the problem is to use a for statement and a break statement. This is like Modula II which has the LOOP-EXIT-END control statement. -----Dale Rogerson-----