comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@world.std.com>
Subject: Re: Ada Protected Object Turorial #2: Overview of Tasks
Date: 1999/12/23
Date: 1999-12-23T00:00:00+00:00	[thread overview]
Message-ID: <wccpuvxadvz.fsf@world.std.com> (raw)
In-Reply-To: 83sb6f$r3g$1@nnrp1.deja.com

Robert Dewar <robert_dewar@my-deja.com> writes:

> It would be like saying that since exceptions are a form of
> non-local gotos, that it makes sense to allow general non-local
> gotos :-)

Interesting.  You're obviously implying that the above argument is
patently absurd, but I'm not so sure it is!  ;-)

I used to use non-local gotos in Pascal once in a while, and I didn't
find them so horrible.  At least with a goto, you know where you're
going to.  Exceptions are less readable, in the sense that you might be
jumping to who-knows-where.  (Of course that's the whole *point* of
exceptions -- to separate the detection of an exceptional situation from
the determination of what to do about it.)

Of course non-local gotos in Ada would make no sense: I can't imagine
what it would mean to goto from a procedure into a different task, and
Ada doesn't provide any way to tell (at compile time) what tasks are
running what procedures.

- Bob




  reply	other threads:[~1999-12-23  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-18  0:00 Ada Protected Object Turorial #2: Overview of Tasks James S. Rogers
1999-12-19  0:00 ` Robert Dewar
1999-12-20  0:00   ` Tucker Taft
1999-12-21  0:00     ` Robert Dewar
1999-12-21  0:00   ` Robert I. Eachus
1999-12-22  0:00   ` Robert A Duff
1999-12-23  0:00     ` Robert Dewar
1999-12-23  0:00       ` Robert A Duff [this message]
1999-12-23  0:00         ` Robert Dewar
1999-12-27  0:00           ` Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox