From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,98c463a9e98cfdf5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-12 06:52:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Ada exceptions. unchecked? Date: 12 Jun 2002 06:52:06 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0206120552.145becec@posting.google.com> References: <8db3d6c8.0206112300.3965a62b@posting.google.com> NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1023889926 30872 127.0.0.1 (12 Jun 2002 13:52:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 12 Jun 2002 13:52:06 GMT Xref: archiver1.google.com comp.lang.ada:25793 Date: 2002-06-12T13:52:06+00:00 List-Id: nma124@hotmail.com (steve_H) wrote in message news:<8db3d6c8.0206112300.3965a62b@posting.google.com>... > I have thought that Ada exceptions were unchecked, is this correct? > > I saw this below: > > http://www.mindview.net/Etc/Discussions/CheckedExceptions > > "To clarify a couple of points in your article, Ada does not have any > form of exception specification, and so does not have a > checked/unchecked model." > > could some Ada expert comment if the above statment is correct or not? It looks to me like his "checked exceptions" means that the compiler forces a caller to provide an explicit check for all exceptions listed in the spec of a routine as being thrown by that routine. If that is the case (I'm not a Java expert, so I don't know) then Ada indeed does not have "checked exceptions". There is no language-defined way to specify what exceptions are raised by a routine in Ada, as there is in C++ (and Java?). I would certianly agree that requiring an exception handler for every possible exception in every single encolsing block around a procedure call in Ada would be a pain. -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - (temporarily down)