From: Karel Th�nissen <thoenissen@hello.nl>
Subject: Re: GOTO considered necessary (reworked)
Date: 1997/06/19
Date: 1997-06-19T00:00:00+00:00 [thread overview]
Message-ID: <33A8E9FE.76F1@hello.nl> (raw)
In-Reply-To: 33A8DB59.776F@hello.nl
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1319 bytes --]
Karel Th�nissen wrote:
> A gizmo like this:
>
> gizmo State : (one, two, three);
> -- the state variable is private to the gizmo (like loop indices)
> -- the state variable is read-only, but can change (like loop
> indices)
> initialStuff;
> transit one;
> state one;
> blaBlaTalk;
> transit ....;
> state two;
> smallTalk; -- use State as a read-only variable like a loop index
> transit ....;
> state three;
> fileBusterTalk;
> terminate; -- or something of that kind; needs more braincells spent
> end gizmo;
Oops, the name of the state variable and the proposed reserved word for
the state blocks are the same (except for Ada-irrelevant
capitalisation)...
It should read (also adding a type definition for the state variable to
avoid an 'anonymous' type):
type StateType is (one, two, three);
gizmo StateVariable : StateType;
-- StateVariable is private to the gizmo (like loop indices)
-- StateVariable is read-only, but can change (like loop indices)
initialStuff;
transit one; -- goto initial state
state one;
....; -- blocks can query StateVariable
transit ....;
state two;
....; -- transits can be burried like returns
transit ....;
state three;
....;
terminate; -- or something of that kind
end gizmo;
> Groeten, Karel
next prev parent reply other threads:[~1997-06-19 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 ` John G. Volan
1997-06-16 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 I. Eachus
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-21 0:00 ` Robert A Duff
1997-06-21 0:00 ` Robert Dewar
1997-06-20 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 [this message]
1997-06-23 0:00 ` John G. Volan
1997-06-23 0:00 ` Spam Hater
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-25 0:00 ` GOTO considered necessary (reworked) Karel Th�nissen
1997-06-23 0:00 ` John G. Volan
1997-06-17 0:00 ` Robert A Duff
1997-06-25 0:00 ` Van Snyder
1997-07-21 0:00 ` Shmuel (Seymour J.) Metz
1997-06-13 0:00 ` Robert A Duff
1997-06-14 0:00 ` Robert Dewar
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 ` Robert A Duff
1997-06-17 0:00 ` Spam Hater
1997-06-17 0:00 ` Robert Dewar
1997-06-17 0:00 ` Spam Hater
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 ` Jon S Anthony
1997-06-27 0:00 ` Robert Dewar
1997-06-20 0:00 ` GOTO considered necessary (reworked) Robert Dewar
1997-06-17 0:00 ` Robert A Duff
1997-06-19 0:00 ` Spam Hater
1997-06-14 0:00 ` Samuel Mize
1997-06-14 0:00 ` Matthew Heaney
1997-06-14 0:00 ` Samuel Mize
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