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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.197.193 with SMTP id iw1mr3735131pbc.0.1335384830798; Wed, 25 Apr 2012 13:13:50 -0700 (PDT) Path: r9ni98043pbh.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: okellogg@users.sourceforge.net Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Wed, 25 Apr 2012 13:12:28 -0700 (PDT) Organization: http://groups.google.com Message-ID: <17572718.3572.1335384748259.JavaMail.geo-discussion-forums@vbbfk16> References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <31103380.3735.1335377235157.JavaMail.geo-discussion-forums@vbuo17> <26317529.742.1335381313996.JavaMail.geo-discussion-forums@ynje10> NNTP-Posting-Host: 91.33.214.84 Mime-Version: 1.0 X-Trace: posting.google.com 1335384829 21692 127.0.0.1 (25 Apr 2012 20:13:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Apr 2012 20:13:49 +0000 (UTC) In-Reply-To: <26317529.742.1335381313996.JavaMail.geo-discussion-forums@ynje10> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.33.214.84; posting-account=a23u_AkAAAB-Xz81hSqodYsmJRrMwioK User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-04-25T13:12:28-07:00 List-Id: On Wednesday, April 25, 2012 9:15:13 PM UTC+2, Adam Beneschan wrote: > > And why would having a "continue" statement be better than the workaround? Conciseness, plus avoidance of gratuitous "goto" (banned by various coding guidelines) > [...] With a "continue" statement, I might be looking at the loop and going > nuts trying to figure out "I know this loop is cycling back, and these last > two statements should be executed before the end of the loop because they're > not inside an IF statement, so they should be calling this routine, but it > seems like it's not being called--why??" I'm not sure what you mean. For clarity, here's my previous example using the continue statement: loop if Some_Condition then continue; end if; -- Or, yet more concisely, continue when Another_Condition; -- a couple 100 lines of code ... end loop; -- Oliver