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,d1ced5efd53fe6a1 X-Google-Attributes: gid103376,public From: John Cosby Subject: Re: Can Ada95 interface with C++? Date: 1997/02/18 Message-ID: <330A682A.2781@cpmx.saic.com>#1/1 X-Deja-AN: 219833364 References: <5csvbd$ia2@top.mitre.org> <32F60684.59E2@gslink.net> <32F94DD7.3F54BC7E@worldnet.att.net> Content-Type: text/plain; charset=us-ascii Organization: SAIC Orlando MIME-Version: 1.0 Newsgroups: comp.lang.ada X-Mailer: Mozilla 3.0 (X11; I; OSF1 V3.2 alpha) Date: 1997-02-18T00:00:00+00:00 List-Id: Robert Dewar wrote: > > Ara says > > "2) Exceptions cannot propagate across language boundarie" > > In general your comments are confused between implementation and language > requirements. If your statement referred to some particular compiler > this might be correct, but as a general statement about Ada 95 and > C++ interfacing it is wrong. Perhaps it should be rephrased as "Exceptions usually do not propogate across language boundaries." Is there a pair of compilers out there that allow exception propogation between Ada95 and C++? Such has not been my experience, and I've been looking. > There is absolutely no reason why exceptions should not propagate across > language boundiares. GNAT does not currently imlplement this in any > automatic manner, but certainly it is our plan to do so as part of > installing the new genral exception scheme. Well, if even GNAT doesn't do it with gcc/g++, how can one expect compiler vendors operating from different code bases to do this? Even the definition of exceptions is being debated in another thread in this group. How can we expect different corporations to come up with an interoperable set of exception propogation rules when there's not even a standard way of making Ada95 and C++ interface? Once you decide how to do it for standard exceptions (Is there a standard set of C++ exceptions? My reference doesn't have any - just base types and the ubiquitous (...)), how will you propogate user-defined exceptions? It's not a small challenge. Not that I'd mind having the capability, mind you... I'm getting tired of debugging "glue" code core dumps that happened when my Ada runtime couldn't handle the C++ exception in the routines the Ada calls. John -- John Cosby SAIC Orlando John.D.Cosby@cpmx.saic.com (407) 282-6700 x216