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,7d1a6bfc6489c17b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-09-02 13:39:38 PST Path: supernews.google.com!sn-xit-02!sn-east!supernews.com!news-feed.riddles.org.uk!freenix!wanadoo.fr!not-for-mail From: Mathias Dolidon Newsgroups: comp.lang.ada Subject: Re: exiting a bloc Date: Sat, 02 Sep 2000 22:39:41 +0200 Organization: Wanadoo, l'internet avec France Telecom Message-ID: <39B1658D.F39B20CF@netcourrier.com> References: <39B15EA8.88DB58AB@netcourrier.com> NNTP-Posting-Host: mix-lyon-106-159.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: wanadoo.fr 967927149 8289 193.250.217.159 (2 Sep 2000 20:39:09 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 2 Sep 2000 20:39:09 GMT X-Mailer: Mozilla 4.7 [fr] (X11; I; Linux 2.2.14-15mdk i686) X-Accept-Language: fr, en Xref: supernews.google.com comp.lang.ada:480 Date: 2000-09-02T20:39:09+00:00 List-Id: > Hello. I am very new to Ada and trying to write some small programs. In > a program which searches primary numbers, I would like to exit a bloc > which is embedded in a loop, without exiting the loop : > > for...loop > intruction; > > bloc : > begin > -- the matter is here > end bloc; > end loop; > > I looked everywhere about how to do this but I found nothing. Is this > possible ? Thank you very much ! > Mathias I did it like this : instead of declaring a bloc, I declare a loop withan exit instruction before "end loop", but it doesn't seem very clean to me ! Isn't there a more "official" way ? -- http://www.mdlabs.fr.st