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-Thread: 103376,587e0e0a16d65b10 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!q9g2000yqc.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Invade wikipedia! Date: Fri, 27 Feb 2009 23:01:21 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <49a6d506$0$32680$9b4e6d93@newsspool2.arcor-online.net> <4a18f335-30f6-4216-8376-0310eb560445@p11g2000yqe.googlegroups.com> <49a7ced2$0$31342$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: 86.75.149.247 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1235804482 9837 127.0.0.1 (28 Feb 2009 07:01:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 28 Feb 2009 07:01:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q9g2000yqc.googlegroups.com; posting-host=86.75.149.247; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4814 Date: 2009-02-27T23:01:21-08:00 List-Id: On 28 f=E9v, 07:40, "Jeffrey R. Carter" wrote: > Ivan Levashew wrote: > I understand the thinking behind this, and have considered doing it, but = it > doesn't seem to work well when exiting from a loop other than the innermo= st loop. > > -- > Jeff Carter Why so ? Doesn't work well ? If you have multiple loops nested loop, you may wish to use named loop, as in Label1: loop .... do the stuff Label2: loop ... do the other inner stuff ... exit Label2 when ConditionA; ... exit Label1 when ConditionB; ... end loop Label2; ... exit Label1 when ConditionC; ... end loop Label1; A syntax highlighter make things looks even more clear (ex. "exit" may be displayed as bold text)