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,99222a5bd46ef3c9 X-Google-Attributes: gid103376,public From: nobody@REPLAY.COM (Anonymous) Subject: Re: GOTO considered necessary (reworked) Date: 1997/06/16 Message-ID: <199706161359.PAA27810@basement.replay.com>#1/1 X-Deja-AN: 248827554 References: <33A052FD.6519@sprintmail.com> Organization: Replay and Company UnLimited X-001: Replay may or may not approve of the content of this posting Mail-To-News-Contact: postmaster@nym.alias.net X-002: Report misuse of this automated service to X-URL: http://www.replay.com/remailer/ Newsgroups: comp.lang.ada Date: 1997-06-16T00:00:00+00:00 List-Id: <5nn2fm$11dk$1@prime.imagin.net> <199706121410.QAA05823@basement.replay.com> On Thu, 12 Jun 1997 12:50:21 -0700, "John G. Volan" wrote: .. > But what if you had this: > > loop > ... --1 > > if then > continue; > end if; > > ... --2 > > if then > continue; > end if; > > ... -- 3 > > if then > continue; > end if; > > ... -- 4 > > end loop; > > Without goto or continue, this would have to be restructured as: > > loop > ... --1 > > if not then > > ... --2 > > if not then > > ... -- 3 > > if not then > > ... -- 4 > > end if; > end if; > end if; > end loop; > > Whichever side you fall on in this debate, you have to at least agree > that a "continue" within a loop is just another example of the "process > continuation logic" situation Sam Mize described. Yep, that's a mess, and I'd wonder if it might be possible to represent the data in a way that simplified the code. If not, I'd put the contents of the loop in a procedure and return when finished. Jeff Carter PGP:1024/440FBE21 My real e-mail address: ( carter @ innocon . com ) "Now go away, or I shall taunt you a second time." Monty Python & the Holy Grail Posted with Spam Hater - see http://www.compulink.co.uk/~net-services/spam/