comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: Improving Ada Exceptions
Date: 1997/10/27
Date: 1997-10-27T00:00:00+00:00	[thread overview]
Message-ID: <EIowJE.5tL.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 873elnu41d.fsf@mihalis.i-have-a-misconfigured-system-so-shoot-me


For what it is worth, we proposed during the Ada 9X revision 
allowing more flexibility in the exception mechanism, allowing for a 
hierarchy of exceptions, treating exception declarations approximately
like type declarations, and treating "raise" statements
approximately like creating an instance of the exception type.

At the time, it was felt to be overkill.  I suspect there might
be more sympathy for it today, though if you look at how exceptions
are used, many of them are used to represent unanticipated errors rather 
than anticipated messages to be received by higher level code.  

Java has an interesting approach, where some classes of exceptions
are presumed to be unanticipated errors (and no local handler or "throws"
clause is required), whereas others are required to have local handlers, or
a "throws" clause that announces that the exception might be propagated.
Unlike in C++, these rules are enforced at compile-time, which
seems much more useful.

--
-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA




  reply	other threads:[~1997-10-27  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-26  0:00 Improving Ada Exceptions Ray Blaak
1997-10-27  0:00 ` Stephen Leake
1997-10-27  0:00   ` Tom Moran
1997-10-27  0:00 ` Chris Morgan
1997-10-27  0:00   ` Tucker Taft [this message]
1997-10-27  0:00   ` Larry Kilgallen
1997-10-27  0:00   ` Alan E & Carmel J Brain
1997-10-27  0:00 ` James S. Rogers
1997-10-30  0:00 ` Balmacara9
1997-11-03  0:00 ` Richard A. O'Keefe
  -- strict thread matches above, loose matches on Subject: below --
1997-11-03  0:00 Marc Wachowitz
1997-11-08  0:00 ` Wayne Magor
1997-11-10  0:00   ` Samuel T. Harris
replies disabled

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