comp.lang.ada
 help / color / mirror / Atom feed
From: "Gisle Sælensminde" <gisle@apal.ii.uib.no>
Subject: Re: Ada exceptions. unchecked?
Date: 12 Jun 2002 22:19:25 GMT
Date: 2002-06-12T22:19:25+00:00	[thread overview]
Message-ID: <slrnagfi7d.t0m.gisle@apal.ii.uib.no> (raw)
In-Reply-To: 3D0750F1.7A12342@raytheon.com

In article <3D0750F1.7A12342@raytheon.com>, Mark Johnson wrote:
> Larry Kilgallen wrote:
>> 
>> In article <8db3d6c8.0206112300.3965a62b@posting.google.com>, nma124@hotmail.com (steve_H) writes:
>> > I have thought that Ada exceptions were unchecked, is this correct?
>> 
>> What do you mean by "unchecked" ?
> 
> After a quick review of the web site he referenced, I believe he is
> referring to the need in Java to either...
>  - catch the exception
>  - declare that the exception is thrown
> Adding it to Ada at this point would break a lot of code (but also
> likely FIX a lot of code when implemented).
>   --Mark

Checked exceptions as in Java is in fact a horrible idea. If you assume
that the program is designed with error handling in mind from the start,
it could work, but in practice you will discover at some point that some
lowlevel error condition the highlevel need to handle. In that case 
all the methods in the entire call tree need to be changed. If the 
application is sufficiently large, you simply can't do that. 

--
Gisle S�lensminde ( gisle@ii.uib.no )   

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead. (from RFC 1925)



  parent reply	other threads:[~2002-06-12 22:19 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-12  7:00 Ada exceptions. unchecked? steve_H
2002-06-12 13:52 ` Ted Dennison
2002-06-12 14:09 ` Larry Kilgallen
2002-06-12 13:47   ` Mark Johnson
2002-06-12 15:40     ` Larry Kilgallen
2002-06-12 16:07       ` Darren New
2002-06-12 22:21         ` Dale Stanbrough
2002-06-13 14:36           ` Hyman Rosen
2002-06-13 16:41             ` Darren New
2002-06-13 17:13               ` Hyman Rosen
2002-06-13 17:48                 ` Darren New
2002-06-13 18:06                   ` Hyman Rosen
2002-06-13 18:37                     ` Darren New
2002-06-13 19:14                       ` Hyman Rosen
2002-07-05 14:35                         ` Stephen J. Bevan
2002-06-12 19:25     ` Simon Wright
2002-06-12 22:19     ` Gisle Sælensminde [this message]
2002-06-13 14:27       ` Mark Johnson
2002-06-14 21:32         ` Gisle Sælensminde
2002-06-14 21:45           ` Darren New
2002-06-15 15:10           ` Simon Wright
2002-06-15 21:26             ` AG
2002-06-15 23:37               ` Darren New
2002-06-15 23:50                 ` AG
2002-06-15 23:57                   ` Darren New
2002-06-17 18:21             ` Charles Lindsey
2002-06-18 16:32             ` Stephen Leake
2002-06-18 19:48               ` Wes Groleau
replies disabled

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