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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,92d77e0c35c0ea4e X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: ADA Exception Handling Date: 1998/10/29 Message-ID: #1/1 X-Deja-AN: 406485907 Sender: bobduff@world.std.com (Robert A Duff) References: <36370fab.0@alijku02.edvz.uni-linz.ac.at> <719anr$bko$1@usenet.rational.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1998-10-29T00:00:00+00:00 List-Id: "Corey Ashford" writes: > For example, in C++, an exception can be reraised from outside the exception > handler (a.k.a catch block) - for example in a function which is > called by the handler. This > isn't possible in Ada. It is possible in Ada, using exception occurrences and the Ada.Exceptions package. I agree that for the most part, Ada and C++ exceptions are more-or-less the same. I'd say the biggest difference between Ada and C++ exceptions is that C++ allows you to add information to an exception occurrence in a type-safe way; that is, you declare that information at the point of the exception *type*, and the raising and handling have to agree. You can add information in Ada, too, but it's not type-safe -- you must encode the information as a String. Sigh. - Bob -- Change robert to bob to get my real email address. Sorry.