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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,459feef56669b92d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-03 05:33:19 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!wn13feed!wn11feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: "continue/next" for "loop" From: James Rogers References: Message-ID: User-Agent: Xnews/5.04.25 Date: Mon, 03 Nov 2003 13:33:19 GMT NNTP-Posting-Host: 12.86.37.250 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1067866399 12.86.37.250 (Mon, 03 Nov 2003 13:33:19 GMT) NNTP-Posting-Date: Mon, 03 Nov 2003 13:33:19 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:1972 Date: 2003-11-03T13:33:19+00:00 List-Id: Lutz Donnerhacke wrote in news:slrnbqckoa.m1.lutz@taranis.iks-jena.de: > But both are the result of an oversimplification! > > outer: loop > inner: loop > Complex_Actions_1; > if First_Condition then > Some_Justify_Actions; > goto next_outer; > end if; > Complex_Actions_2; > if Second_Condition then > Some_Other_Justify_Actions; > goto next_outer; > end if; > Complex_Actions_3; > end loop inner; > Complex_End_Statments; > exit outer when Other_Condition; > More_Statments; > > <> null; > end loop outer; declare Outer_Continue : boolean; begin outer: loop inner : loop Complex_Actions_1; if First_Condition then Some_Justify_Actions; Outer_Continue := false; exit inner; end if; Complex_Actions_2; if Second_Condition then Some_Other_Justify_Actions; Outer_Continue := false; exit inner; end if; Outer_Continue := true; Complex_Actions_3; end loop inner; if Outer_Continue then Complex_End_Statements; exit outer when Other_Condition; end if; end loop outer; Jim Rogers