From: nobody@REPLAY.COM (Anonymous)
Subject: Re: GOTO considered necessary (reworked)
Date: 1997/06/16
Date: 1997-06-16T00:00:00+00:00 [thread overview]
Message-ID: <199706161359.PAA27810@basement.replay.com> (raw)
In-Reply-To: 33A052FD.6519@sprintmail.com
<5nn2fm$11dk$1@prime.imagin.net>
<199706121410.QAA05823@basement.replay.com>
On Thu, 12 Jun 1997 12:50:21 -0700, "John G. Volan"
<johnvolan@sprintmail.com> wrote:
..
> But what if you had this:
>
> loop
> ... --1
>
> if <condition expression 1> then
> continue;
> end if;
>
> ... --2
>
> if <condition expression 2> then
> continue;
> end if;
>
> ... -- 3
>
> if <condition expression 3> then
> continue;
> end if;
>
> ... -- 4
>
> end loop;
>
> Without goto or continue, this would have to be restructured as:
>
> loop
> ... --1
>
> if not <condition expression 1> then
>
> ... --2
>
> if not <condition expression 2> then
>
> ... -- 3
>
> if not <condition expression 3> 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/
next prev parent reply other threads:[~1997-06-16 0:00 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-11 0:00 GOTO considered necessary (reworked) Samuel Mize
1997-06-11 0:00 ` Bryce Bardin
1997-06-12 0:00 ` Michael F Brenner
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Robert A Duff
1997-06-20 0:00 ` Robert Dewar
1997-06-21 0:00 ` Robert A Duff
1997-06-21 0:00 ` Robert Dewar
1997-06-12 0:00 ` Anonymous
1997-06-12 0:00 ` Robert Dewar
1997-06-12 0:00 ` John G. Volan
1997-06-13 0:00 ` Robert A Duff
1997-06-16 0:00 ` John G. Volan
1997-06-17 0:00 ` Robert A Duff
1997-06-25 0:00 ` Van Snyder
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Robert A Duff
1997-06-18 0:00 ` Spam Hater
1997-06-20 0:00 ` Robert Dewar
1997-06-20 0:00 ` Robert Dewar
1997-06-21 0:00 ` Robert A Duff
1997-06-21 0:00 ` Robert Dewar
1997-06-25 0:00 ` Wolfgang Gellerich
1997-06-25 0:00 ` Michael F Brenner
1997-06-26 0:00 ` Wolfgang Gellerich
1997-06-25 0:00 ` Samuel T. Harris
1997-06-19 0:00 ` Karel Th�nissen
1997-06-19 0:00 ` Karel Th�nissen
1997-06-23 0:00 ` John G. Volan
1997-06-23 0:00 ` Robert Dewar
1997-06-24 0:00 ` Brian Rogoff
1997-06-25 0:00 ` Featuritis not always bad (was re: GOTO considered necessary) Karel Th�nissen
1997-06-26 0:00 ` Robert Dewar
1997-06-26 0:00 ` Karel Th�nissen
1997-06-23 0:00 ` GOTO considered necessary (reworked) Spam Hater
1997-06-25 0:00 ` Karel Th�nissen
1997-06-23 0:00 ` John G. Volan
1997-06-17 0:00 ` Robert I. Eachus
1997-07-21 0:00 ` Shmuel (Seymour J.) Metz
1997-06-12 0:00 ` John G. Volan
1997-06-16 0:00 ` Anonymous [this message]
1997-06-13 0:00 ` Robert A Duff
1997-06-14 0:00 ` Samuel Mize
1997-06-14 0:00 ` Samuel Mize
1997-06-14 0:00 ` Matthew Heaney
1997-06-14 0:00 ` Robert Dewar
1997-06-16 0:00 ` Robert A Duff
1997-06-17 0:00 ` Spam Hater
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Robert A Duff
1997-06-19 0:00 ` John Herro
1997-06-25 0:00 ` Function result Van Snyder
1997-06-27 0:00 ` Robert Dewar
1997-06-27 0:00 ` Jon S Anthony
1997-06-20 0:00 ` GOTO considered necessary (reworked) Robert Dewar
1997-06-17 0:00 ` Spam Hater
1997-06-17 0:00 ` Robert A Duff
1997-06-19 0:00 ` Spam Hater
1997-06-16 0:00 ` Spam Hater
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Spam Hater
1997-06-16 0:00 ` Anonymous
1997-06-16 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox