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,bc02f41d4b41f65f X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Access to C++ exceptions from GNAT ? Date: 1996/04/05 Message-ID: #1/1 X-Deja-AN: 145981624 references: <4k3ahf$4ig0@info4.rus.uni-stuttgart.de> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-04-05T00:00:00+00:00 List-Id: "I know that there is a paper on how to access "normal" C++ classes from Ada. My question is, how do get access to C++ exceptions ? I know that there is quite a diffrence between Ada and C++ exceptions, but I am asking because I would like to evaluate if it is possible to write an Ada binding to some of the freely available OS/2 class libraries. " Currently there is no way to interoperate with exceptions between C++ and GNAT. This will change in the future when we integrate the exception handling in GNAT and g++. You can always write wrappers that translate the exceptions into flags, and then pick up the flags on the Ada side and reraise the exceptions.