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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8002154d2966e1a1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-05 23:18:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!washdc3-snf1!news.gtei.net!cyclone1.gnilink.net!news-out.nuthinbutnews.com!propagator2-sterling!news-in-sterling.newsfeed.com!news-in.nuthinbutnews.com!intgwlon.nntp.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Re: Local vs global variables in ADA References: <5Ldx9.3695$151.38236@weber.videotron.net> <3DC5D1B7.1060707@acm.org> <3DC6DD54.10200@acm.org> User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X) Message-ID: Date: Wed, 06 Nov 2002 07:18:19 GMT NNTP-Posting-Host: 144.132.47.50 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 1036567099 144.132.47.50 (Wed, 06 Nov 2002 18:18:19 EST) NNTP-Posting-Date: Wed, 06 Nov 2002 18:18:19 EST Organization: BigPond Internet Services (http://www.bigpond.net.au) Xref: archiver1.google.com comp.lang.ada:30425 Date: 2002-11-06T07:18:19+00:00 List-Id: Robert A Duff wrote: > Like what? I mean, which languages have different definitions of > "while" loops, and what are the differences. I thought "while" loops > were one of the few cases where there is pretty much agreement on the > semantics across languages. > > I like while loops, and use them in favor of loop/exit whenever the exit > condition happens at the top. Of course the exit has a negated condition compared to the while, so this may make it easier to read in some situations. while (not finished) and (not found) loop ... end loop or while not (finished or found) loop or loop exit when finished or found; ... end loop; Dale