From: kilgallen@eisner.decus.org (Larry Kilgallen)
Subject: Re: Can Ada95 interface with C++?
Date: 1997/02/11
Date: 1997-02-11T00:00:00+00:00 [thread overview]
Message-ID: <1997Feb11.153355.1@eisner> (raw)
In-Reply-To: tx1bu9rp8sr.fsf@cygnus.com
In article <tx1bu9rp8sr.fsf@cygnus.com>, Ken Raeburn <raeburn@cygnus.com> writes:
>
> People have been saying "yes you can do it", but I'm wondering how
> it's done, since Annex B only talks about C, COBOL, and Fortran.
>
> Does it require programmers in both languages to use C-compatible
> interfaces for anything to be shared? Or can Ada interface with
> "real" C++ code?
Ada implementors realize there is demand for C++ interoperation,
and are likely to attempt some sort of compatibility.
Neither implementors nor the Ada standard, however, can stipulate
C++ compatibility because there is not yet an international standard
for the C++ language. Even for a particular existing C++ product,
it would not be wise for an Ada vendor to make sweeping compatibility
claims because that C++ vendor is likely to go off and change their
implementation whenever a C++ standard arrives.
> with virtual functions be described to an Ada compiler? (I think
> telling the Ada compiler *which* C++ implementation is being used, on
> platforms supporting multiple incompatible ones, might be a reasonable
> concession; just no low-level details.)
I can vote for that approach as well, since I also do not have to
implement a compiler :-)
> I've only just started learning about Ada, so I don't know how well
> the C++ constructs correspond to the Ada features I have yet to learn.
www.adahome.com points to at least one document comparing the two
languages which seems to give a valuable description of Ada in
terms which should be familiar to C++ programmers.
Larry Kilgallen
next parent reply other threads:[~1997-02-11 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5csvbd$ia2@top.mitre.org>
[not found] ` <32F60684.59E2@gslink.net>
[not found] ` <32F94DD7.3F54BC7E@worldnet.att.net>
[not found] ` <1997Feb6.150722.14570@ocsystems.com>
[not found] ` <1997Feb6.130819.1@eisner>
[not found] ` <dewar.855276105@merv>
[not found] ` <tx1bu9rp8sr.fsf@cygnus.com>
1997-02-11 0:00 ` Larry Kilgallen [this message]
1997-02-12 0:00 ` Can Ada95 interface with C++? Joel VanLaven
1997-02-14 0:00 ` Ken Raeburn
1997-02-24 0:00 ` Robert Dewar
1997-02-24 0:00 ` Robert Dewar
1997-02-12 0:00 ` Robert Dewar
1997-02-20 0:00 ` Samuel Mize
1997-02-21 0:00 ` Robert Dewar
[not found] ` <dewar.855234605@merv>
1997-02-18 0:00 ` John Cosby
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox