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,587e0e0a16d65b10 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Invade wikipedia! 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> <49a877d2$0$31331$9b4e6d93@newsspool4.arcor-online.net> In-Reply-To: <49a877d2$0$31331$9b4e6d93@newsspool4.arcor-online.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <1C%pl.590807$yE1.93557@attbi_s21> NNTP-Posting-Host: 173.16.158.68 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1235781117 173.16.158.68 (Sat, 28 Feb 2009 00:31:57 GMT) NNTP-Posting-Date: Sat, 28 Feb 2009 00:31:57 GMT Organization: AT&T ASP.att.net Date: Sat, 28 Feb 2009 00:31:57 GMT Xref: g2news1.google.com comp.lang.ada:3838 Date: 2009-02-28T00:31:57+00:00 List-Id: Georg Bauhaus wrote: > > If you do this (remove the off-by-one decrement before loop > termination), you end up with two exits from a loop. > Algorithm guys might not find this clean at all... The "loop and a half" is a very common paradigm. Pascal, which enforced the 1-exit-only philosophy (excluding gotos), didn't handle it well. The clearest way to express it is with an exit statement, which is why well designed SW-engineering languages such as Ada include it. -- Jeff Carter "I'm particularly glad that these lovely children were here today to hear that speech. Not only was it authentic frontier gibberish, it expressed a courage little seen in this day and age." Blazing Saddles 88