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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,fcbbb6164185a4a7 X-Google-Attributes: gid103376,public From: sparre@meyer.fys.ku.dk (Jacob Sparre Andersen) Subject: [GNAT] Extending a C++ class Date: 1998/04/23 Message-ID: <6hnh4i$kci$1@news.uni-c.dk>#1/1 X-Deja-AN: 346972243 References: Organization: News Server at UNI-C, Danish Computing Centre for Research and Education. Newsgroups: comp.lang.ada Date: 1998-04-23T00:00:00+00:00 List-Id: Robert Dewar (dewar@merv.cs.nyu.edu) wrote about the C++ interfacing pragmas: : But you really have to know what you are doing to use them. Generally they : are intended for use by a binding generator, not by humans. In the GNAT Reference Manual there are references to "the C++ binding generator tool". Where can I find/buy that tool? : The easiest thing for most people is to write a C wrapper for their C++ : code and to interface to the C wrapper. This can be done using only : standard features of the language as described in annex B of the RM. This seems a bit silly if you want to extend a C++ class in Ada. - Is this suggestion just intended for old fashioned procedural code, or can you explain how you would do it with a C++ class? Greetings, Jacob ---------------------------------------------------------------------------- -- Jacob Sparre Andersen -- E-mail: Jacob.Sparre.Andersen@risoe.dk -- -- National Laboratory Ris� -- Phone.: (+45) 46 77 51 23 -- -- Systems Analysis -- Fax...: (+45) 46 77 51 99 -- ---------------------------------------------------------------------------- Have you played with your LEGO today?