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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,999172cfe4113340 X-Google-Attributes: gid103376,public From: Jeff Carter Subject: Re: How to implement a continue statement in Ada? Date: 2000/02/12 Message-ID: <38A5C822.96A27331@earthlink.net>#1/1 X-Deja-AN: 585105307 Content-Transfer-Encoding: 7bit References: <87pgm3$o3p$1@nnrp1.deja.com> <87pmrq$9ae1@news.cis.okstate.edu> <87s92d$lj1$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: Sat Feb 12 13:54:25 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.prod.itd.earthlink.net 950392465 63.10.51.67 (Sat, 12 Feb 2000 13:54:25 PST) Organization: EarthLink Network, Inc. MIME-Version: 1.0 Reply-To: jrcarter@acm.org NNTP-Posting-Date: Sat, 12 Feb 2000 13:54:25 PST Newsgroups: comp.lang.ada Date: 2000-02-12T00:00:00+00:00 List-Id: Ted Dennison wrote: > Given that such workarounds (hacks) exist, why not put continue > capability in Ada 0X by allowing the "exit" statement to exit outside of > a begin..end block? The fact that you can't do this is actually a common > confusion for newbies anyway. Of course, there is a horrible way to do this already: loop declare Continue : exception; begin ... raise Continue; -- Also known as the continue statement ... exception when Continue => null; end; end loop; -- Jeff Carter "You empty-headed animal-food-trough wiper." Monty Python & the Holy Grail