comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Ada bindings to C++
Date: 1996/12/06
Date: 1996-12-06T00:00:00+00:00	[thread overview]
Message-ID: <dewar.849926180@merv> (raw)
In-Reply-To: 32A84CF4.794B@cpmx.saic.com


John Cosby said

"It's not that simple.  The representation of C++ objects is entirely
compiler-
dependent, as is the representation of Ada95 tagged types.  You cannot
imply
a mapping between different compilers (GNAT and g++ form an exception;
since
both use the same compiler engine, they use the same representation, and
can
swap objects to some degree).  In many programming environments, there
is no
way to (for example) make Ada95 invoke C++ object methods, or have C++
call
Ada95 dispatching functions."


Please note that GNAT has an entirely procedural interface for defining
the format of dispatching tables, so by modifying the appropriate
runtime routine, it is possible to "make Ada 95 invoke C++ object methods",
for virtually any C++ compiler, not just g++ (interfacing to g++ is neither
harder or easier than interfacing to any other C++ compiler from GNAT).





  reply	other threads:[~1996-12-06  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-04  0:00 Ada bindings to C++ Brett M. Kettering
1996-12-06  0:00 ` John Cosby
1996-12-06  0:00   ` Robert Dewar [this message]
1996-12-07  0:00 ` Joel VanLaven
replies disabled

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