comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Objects in Fortran 2000
Date: 1997/03/21
Date: 1997-03-21T00:00:00+00:00	[thread overview]
Message-ID: <E7EIAI.45x@world.std.com> (raw)
In-Reply-To: 5gs6ub$kb3@netline-fddi.jpl.nasa.gov


In article <5gs6ub$kb3@netline-fddi.jpl.nasa.gov>,
Van Snyder <vsnyder@gyre.jpl.nasa.gov> wrote:
>BTW, Robert, the Fortran proposal for exception/handler blocks, similar to
>the way Ada does it, foundered on the semantics of the combination of
>exceptions and parallelism.  Has the Ada community some insight/advice to
>offer concerning the semantics of exception blocks in the presence of
>parallelism?

Could you be more specific?  I don't know Fortran 90.  Are you talking
about parallel "for all" sorts of loops?  Anyway, if you have multiple
parallel threads of control raising exceptions, you can wait until they
are all synchronized in some way, and then raise a single exception --
for example, the way Ada deals with exceptions during task activation by
raising Program_Error.  (For normal exceptions raised by tasks, not
during activation, Ada says the exception is ignored.  I think that's a
bad thing.)  In Ada, if an exception is raised during a rendezvous, both
tasks get the exception.

- Bob




  reply	other threads:[~1997-03-21  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <01bc280b$32c42d40$dac32299@default>
1997-03-06  0:00 ` Objects in Fortran 2000 Thomas Koenig
1997-03-06  0:00   ` Larry Kilgallen
1997-03-06  0:00   ` Robert A Duff
1997-03-08  0:00   ` Robert Dewar
1997-03-20  0:00     ` Van Snyder
1997-03-21  0:00       ` Robert A Duff [this message]
1997-03-22  0:00         ` Robert Dewar
1997-03-23  0:00           ` William Clodius
replies disabled

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