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 00:42:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!newsgate.cistron.nl!transit.news.xs4all.nl!news.xs4all.nl!not-for-mail Sender: fwilson@FWILSON Newsgroups: comp.lang.ada From: Fraser Wilson Subject: Re: Local vs global variables in ADA References: <5Ldx9.3695$151.38236@weber.videotron.net> <3DC5D1B7.1060707@acm.org> <3DC6DD54.10200@acm.org> Date: 05 Nov 2002 09:43:02 +0100 Message-ID: X-Newsreader: Gnus v5.7/Emacs 20.7 NNTP-Posting-Host: 80.126.24.12 X-Trace: 1036485712 news.xs4all.nl 46607 80.126.24.12:64199 Xref: archiver1.google.com comp.lang.ada:30375 Date: 2002-11-05T09:43:02+01:00 List-Id: Jeffrey Carter writes: > True. But since at the Ada launch on 1980 Dec 10, some of those people > said that the language contained "goto" primarily to facilitate > automated translation from languages such as FORTRAN 66, and "while" > primarily to facilitate such translation from languages such as Pascal, On the "while" comment: are you (or were they) referring to the fact that a while loop can be expressed as a loop/exit when/end loop construction, or is there something about while loops that should be avoided? Isn't there a preference hierarchy from for loop to while loop to loop? I.e. use a for loop whenever possible, failing that a while loop, and as a last resort a loop with an exit. OK, and as a last last resort use a goto. Fraser.