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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,14f7200925acb579 X-Google-Attributes: gid103376,public From: Charles Hixson Subject: Re: No Go To's Forever! Date: 2000/03/22 Message-ID: <38D92D36.2FEF9026@earthlink.net>#1/1 X-Deja-AN: 600996322 Content-Transfer-Encoding: 7bit References: <38D7B41D.B3494C6A@lmco.com> <8b8m2e$8201@news.cis.okstate.edu> <8b9fk3$l18$1@nnrp1.deja.com> <399110395wnr@natron.demon.co.uk> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 953756784 209.179.250.129 (Wed, 22 Mar 2000 12:26:24 PST) Organization: EarthLink Inc. -- http://www.EarthLink.net MIME-Version: 1.0 NNTP-Posting-Date: Wed, 22 Mar 2000 12:26:24 PST Newsgroups: comp.lang.ada Date: 2000-03-22T00:00:00+00:00 List-Id: Roger Barnett wrote: > -- snip > I would argue that this use is clearer than the continue statement > as provided by C. > > -- snip Personally I find that if the break and contiue constructs are supplemented with named break and continue statements, I never have the need (or desire) for a GoTo. Unfortunately, these constructs are not always available, so it is sometimes necessary to simulate (emulate?) them. Back in the CP/M days I'd occasionally write a driver where I'd need to either use a goto or drop into assembler. Usually I choose to use "sort-of" C, with go-to instructions for ease in understanding. But it was nearly a tossup. OTOH, those were *VERY* small modules. A couple of branches in a 20 line routine is acceptable if there is a good reason. For that matter I'd rather use a state machine implemented with goto's than one that was implemented with function variables. I find them to be "pretty near" the same concept, and even less intelligible (the true touchstone!). -- Charles Hixson -- charleshixson@earthling.net