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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,999172cfe4113340 X-Google-Attributes: gid103376,public From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Subject: Re: How to implement a continue statement in Ada? Date: 2000/02/08 Message-ID: <87pmrq$9ae1@news.cis.okstate.edu>#1/1 X-Deja-AN: 583324211 References: <87pgm3$o3p$1@nnrp1.deja.com> Organization: Oklahoma State University User-Agent: slrn/0.9.6.2 (Linux) Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada Date: 2000-02-08T00:00:00+00:00 List-Id: On Tue, 08 Feb 2000 16:36:20 GMT, Oliver Kellogg wrote: >In article <6smb7v$j39$1@nnrp1.dejanews.com>, > dennison@telepath.com wrote: > >> I have used Ada for 9 years now, and have yet to tell myself, >> "gee, I really wish I could do a continue". I think this is >> mostly an issue for C converts. > >I care to disagree. > >We have a coding rule that forbids the use of goto. >I generally like that rule - it prevents insufficiently >trained people from messing around. > >Then again, I have never needed goto for other than >emulating "continue". So I see this as an exceptional case. I disagree with that rule. The goto statement is the most powerful control structure, and judiciously used, is very useful. My most recent use of a goto was to emulate tail recursion. Does that mean that Ada needs a tail recursion call? -- David Starner - dstarner98@aasaa.ofe.org Only a nerd would worry about wrong parentheses with square brackets. But that's what mathematicians are. -- Dr. Burchard, math professor at OSU