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-Thread: 103376,a60bbbe59db2715,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Andreas Almroth Newsgroups: comp.lang.ada Subject: Interfacing C++ classes, but what about the destructor? Date: Wed, 19 Oct 2005 14:34:05 +0200 Message-ID: <3rmsq8Fk1nvkU1@individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net kgwBkls8smDqUxh3UTLdrAl1nRmgxXCil0yHwIziK3+Bdc65hV User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Xref: g2news1.google.com comp.lang.ada:5801 Date: 2005-10-19T14:34:05+02:00 List-Id: Hi all, I have been searching google, and read the Gnat RM&UG, and I have some working code interfacing C++ classes. No problem really so far, although it feels as if I'm wading in unchartered waters... Documentation seems to be sparse, although the documentation that is there pretty much shows you how to do it... My question is though on the topic of C++ class destructors. When I search, I find references to CPP_Destructor pragma in some documentation, but when I compile the code, I get a warning stating that the pragma is unknown. I have tried GNAT 3.15p, gcc 3.4.2 and gcc 4.0.1, all the same. As the pragma doesn't seem to exist, contrary to older documentation, I assume it it has been removed due to it doesn't work, or was deemed unneccesary. Regardless of reasons, I 1) wonder the history behind this, 2) how to call the destructor of the C++ class from Ada side, or why I shouldn't. Well, any pointers is appreciated... Regards, /Andreas