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,33dd986048344726 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-02 05:38:52 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!cyclone2.usenetserver.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B405EB6.227F6392@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: What happens to Ada exceptions if c calls ada References: <2d87db3f.0107020033.5f0d19d0@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 02 Jul 2001 12:38:48 GMT NNTP-Posting-Host: 158.252.123.86 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 994077528 158.252.123.86 (Mon, 02 Jul 2001 05:38:48 PDT) NNTP-Posting-Date: Mon, 02 Jul 2001 05:38:48 PDT X-Received-Date: Mon, 02 Jul 2001 05:36:35 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:9322 Date: 2001-07-02T12:38:48+00:00 List-Id: Mark Doherty wrote: > > I am writing a mixed language application (not by choice). > > I have an Ada main program calling c routines that in turn calling an > Ada device driver. > > What happens if the device driver raises an exception? I would never rely on any kind of inter-language exception passing/handling without iron-clad guarantees from the compiler vendors. In this kind of situation I would put a thin wrapper around the device driver to catch the exceptions and convert them into something that C would find tolerable, such as return codes. Marc A. Criley Senior Staff Engineer Quadrus Corporation www.quadruscorp.com