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,5f4679d58bde270f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Calling C++ methods from Ada.. Date: Fri, 03 Dec 2004 13:55:33 +0000 Message-ID: References: <12249392.8B9d8fV5qk@linux1.krischik.com> NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1102082133 26429 62.49.62.197 (3 Dec 2004 13:55:33 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 3 Dec 2004 13:55:33 +0000 (UTC) User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Xref: g2news1.google.com comp.lang.ada:6734 Date: 2004-12-03T13:55:33+00:00 List-Id: On Fri, 03 Dec 2004 09:59:22 +0100, Martin Krischik wrote: > The original idea was a C++ parser which generated the bindings. With the > complexity of C++ the only way to go. However the parser never > happend :-( . That's just overkill, the way to do it is like the example the OP posted. Have the compiler take a pragma which determines which C++ compiler the binding is from, this determines the name mangling method (as they're all different), then when the Ada compiler comes across an import of a C++ method (with class scoping), it can generate the correct bindings. Luke.