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,47327673b9e29af0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-19 10:34:06 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: exceptions and C functions (was Re: Ada -> C or C++ translator) Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Wed, 19 Jun 2002 17:33:17 GMT References: <3D0DD57A.5000402@yahoo.com> <3D1095F1.68DA0D0C@despammed.com> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:26407 Date: 2002-06-19T17:33:17+00:00 List-Id: Wes Groleau writes: > > > Can Ada exceptions cross C functions? E.g. if an Ada subprogram called > > > a C function, which called an Ada subprogram which raised an exception, > > > would the exception propagate across the C void? > > > > Yes. > > No. Unless the compiler vendors had taken steps to ensure > this would happen. I think the answer is yes with gcc (cc1/gnat1) Umm. The question was about the AverCom (was AverStar, was Intermetrics) AdaMagic compiler -- the version that translates to C. I work for this compiler vendor, and I implemented much of the exception handling facility. This compiler vendor *has* taken steps to make sure that exceptions can propagate from Ada to C back to Ada. So the answer, as I said, is "Yes". Sheesh. - Bob