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,86fd56abf3579c34 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-28 08:25:49 PST Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!news.cac.psu.edu!news.pop.psu.edu!hudson.lm.com!godot.cc.duq.edu!toads.pgh.pa.us!evans.pgh.pa.us!user From: evans@evans.pgh.pa.us (Arthur Evans Jr) Newsgroups: comp.lang.ada Subject: Re: State machines and Goto's (was Re: Should internet support software be written in Ada?) Followup-To: comp.lang.ada Date: Mon, 27 Mar 1995 18:14:26 -0500 Organization: Ada Consulting Distribution: world Message-ID: References: <3kaksj$iur@isnews.calpoly.edu> <3ki9t8$c8l@Starbase.NeoSoft.COM> NNTP-Posting-Host: evans.pgh.pa.us Date: 1995-03-27T18:14:26-05:00 List-Id: In article , eachus@spectre.mitre.org (Robert I. Eachus) wrote: > The only goto's I have ever used in Ada, PL/I, Algol, etc. have > been either in compiler testing or in state machines. (The former is, > of course, no reason to include them in a language.) So AFAIK, the > only legitimate use of gotos are in state machines. Another use is in code that is generated by a tool, where often it is easier to generate a goto than to write code that accomplishes the task some other way. A general truism: It is OK for a tool to generate code that you woyld fire a programmer for writing. Art Evans Arthur Evans Jr, PhD Phone: 412-963-0839 Ada Consulting FAX: 412-963-0927 461 Fairview Road Pittsburgh PA 15238-1933 evans@evans.pgh.pa.us