comp.lang.ada
 help / color / mirror / Atom feed
From: "Luke A. Guest" <laguest@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co.uk>
Subject: Re: Calling C++ methods from Ada..
Date: Fri, 03 Dec 2004 13:55:33 +0000
Date: 2004-12-03T13:55:33+00:00	[thread overview]
Message-ID: <pan.2004.12.03.13.55.32.710878@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co.uk> (raw)
In-Reply-To: 12249392.8B9d8fV5qk@linux1.krischik.com

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.




  reply	other threads:[~2004-12-03 13:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-01 21:11 Calling C++ methods from Ada Ganesh Ramasivan
2004-12-01 23:05 ` Luke A. Guest
2004-12-02  0:21   ` Jeff C r e e.m
2004-12-02 11:12   ` Brian May
2004-12-02 21:32     ` Luke A. Guest
2004-12-02 21:49       ` Adrien Plisson
2004-12-03  8:59       ` Martin Krischik
2004-12-03 13:55         ` Luke A. Guest [this message]
2004-12-03 13:58         ` Luke A. Guest
2004-12-04 10:09           ` Brian May
2004-12-03 14:06         ` Luke A. Guest
2004-12-04 13:22           ` Georg Bauhaus
2004-12-05  1:51             ` David Botton
2004-12-02  4:36 ` Brian May
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox