From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2cb6c27047140e0 X-Google-Attributes: gid103376,public From: "alan walkington" Subject: Re: How to implement a continue statement in Ada? Date: 1998/09/01 Message-ID: <6shvd4$5v9$1@usenet46.supernews.com>#1/1 X-Deja-AN: 386945926 References: <35EA8153.7BFC91E3@physics.purdue.edu> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: newsabuse@supernews.com X-Trace: 904691940 YVH4RINSWAB31D118 usenet46.supernews.com Organization: http://www.supernews.com, The World's Usenet: Discussions Start Here Newsgroups: comp.lang.ada Date: 1998-09-01T00:00:00+00:00 List-Id: Robert T. Sagris wrote in message <35EA8153.7BFC91E3@physics.purdue.edu>... >I was wondering if there is a general way of implementing >the behavior of C's continue statement in Ada. As you have seen from the responses, the answer is NO. however, using psuedocode (so don't tell me it won't compile--:-)) .. in C: loop statement if (conditional on iterator) continue; end if; more code end loop you must INVERT the logic in ada: loop statement if NOT (conditional on iterator) more code end if end loop both these will skip 'more code' on the test of an iterator Alan Walkington Sr. Software Engineer UDLP, San Jose (remove the obvious from the e-mail address) walkyANTISPAM@netmagic.net