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-18 17:25:04 PST From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: exceptions and C functions (was Re: Ada -> C or C++ translator) Organization: RMIT References: <3D0DD57A.5000402@yahoo.com> User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X) Date: Wed, 19 Jun 2002 10:21:43 +1000 Message-ID: NNTP-Posting-Host: dale2.cs.rmit.edu.au X-Trace: itsawnews.its.rmit.edu.au 1024446239 dale2.cs.rmit.edu.au (19 Jun 2002 10:23:59 +1000) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!snewsf0.syd.ops.aspac.uu.net!news1.optus.net.au!optus!vrn.edu.au!131.170.8.40.MISMATCH!itsawnews.its.rmit.edu.au!dale Xref: archiver1.google.com comp.lang.ada:26325 Date: 2002-06-19T10:21:43+10:00 List-Id: Robert A Duff wrote: > It supports the full language, including exceptions, tasking, etc (but > not the optional annexes). (It's not *easy* to translate Ada's > exceptions into C, but it is possible.) 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? If they don't (and pragma import of external language elements is basically incompatable with exceptions) then couldn't you just translate all Ada subprograms into equivalent C functions but with an extra exception paarameter? Dale