comp.lang.ada
 help / color / mirror / Atom feed
* Ada bindings to C++
@ 1996-12-04  0:00 Brett M. Kettering
  1996-12-06  0:00 ` John Cosby
  1996-12-07  0:00 ` Joel VanLaven
  0 siblings, 2 replies; 4+ messages in thread
From: Brett M. Kettering @ 1996-12-04  0:00 UTC (permalink / raw)



I have written Ada bindings to C in both Ada 83 and Ada 95.  The
Interfaces.C package and pragma Convention of Ada 95 really make this a
lot easier.  Lately I have been considering Ada 95 bindings to C++.

Can I get some input from persons that have written Ada 95 bindings to
C++?  In my readings I have learned that the C++ class construct is
analogous to the C struct.  So, this would imply that a binding to a
class becomes an Ada 95 record that contains pointers to functions, as
well as the Ada 95 versions of C data, as its elements?  What about
class objects that are "thrown" as exceptions?

How does one go about using pragmas Import and Convention to bring these
functions into an Ada 95 program to be called?

Does the "c2ada" translator convert C++ header files to Ada 95 bindings?

Thanks for any leads.

Brett
 
--------------------------------------------------
Brett M. Kettering
LLNL   P.O. Box 808 L-493   Livermore, CA.  94550
E-mail: brettk@llnl.gov
Voice : (510) 423-3467
FAX   : (510) 422-1930
--------------------------------------------------




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-12-07  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
1996-12-07  0:00 ` Joel VanLaven

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