comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: C++ to Ada 95 "thin" binding generator?
Date: 1996/02/21
Date: 1996-02-21T00:00:00+00:00	[thread overview]
Message-ID: <dewar.824948698@schonberg> (raw)
In-Reply-To: rwn36ebv6r.fsf@se22.itd.dsto.gov.au

Matthew says

"I am a proponent of Ada 95, but I also realise that there is a LOT of
C++ code out there.  One thing that has occurred to me is that an
automatic C++ to Ada 95 "thin" binding generator would allow a lot of
C++ code to be used from within Ada 95 programs.  It wouldn't be as
good as having a hand-coded binding, but at least it would mean we
don't miss out on some of the good C++ libraries out there."

There are two issues here.

First you need to architect the Ada 95 compiler so that interface to
C++ is smooth.

GNAT implements a number of pragmas for this purpose, and when these
pragmas are used, it is possible to map Ada tagged types exactly into
C++ classes.

So this is the raw material for a C++ interface, then you need a binding
generator.

SGI currently has developed such a tool internally, which they have used
to provide bindings for many of their large libraries such as Inventor,
but they have not yet released this tool for external use (it is still
under development).





  parent reply	other threads:[~1996-02-21  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-20  0:00 C++ to Ada 95 "thin" binding generator? Matthew Phillips
1996-02-21  0:00 ` Mitch Gart
1996-02-21  0:00 ` Robert Dewar [this message]
1996-02-26  0:00   ` Scott Leschke
replies disabled

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