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,a3e163a51c7bf63,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-26 04:10:37 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: almroth@attglobal.net (Andreas Almroth) Newsgroups: comp.lang.ada Subject: C++->Ada; Exception handling Date: 26 Jun 2001 04:10:36 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 213.237.151.24 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 993553836 27801 127.0.0.1 (26 Jun 2001 11:10:36 GMT) X-Complaints-To: groups-support@google.com NNTP-Posting-Date: 26 Jun 2001 11:10:36 GMT Xref: archiver1.google.com comp.lang.ada:9110 Date: 2001-06-26T11:10:36+00:00 List-Id: Hi all, Thought I would add to some of the Usenet noise... :) I have been fiddling around with interfacing stuff written in C++ in my Ada95 programs. I have found the documentation to be scarce at best, but I have got the basic mappings to work fairly well... Now, my questions are, how about exception handling? Are there pragma's I can use for this, and is it very compiler dependant? I have read the RM95, Annex B and L. But no obvious pragmas, except the ones I already used for achieving mapping to C++. Well, I should say I'm using GNAT 3.13p. I don't know with other compilers, maybe the Aonix one have support? I have been thinking of encapsulating the exceptions in C++, in a way so that I get error codes sent to Ada part, but that really is not the best solution, is it? Well, any information is indeed greatly appreciated. And if you have an URL where all the Gnat specific interface documentation is, I would really appreciate it... Regards, Andreas