TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: Tucker Taft <[log in to unmask]>
Date: Fri, 23 Jan 1998 13:19:11 -0500
Reply-To: Tucker Taft <[log in to unmask]>
Parts/Attachments: text/plain (24 lines)
> No one has mentioned what we have found is the number one problem
> with mixing Ada and C++, and that is controlling
> the elaboration of class object
> instances.  Ada has a well defined API (adainit) that can be called,
> but C++ doesn't (in the numerous compilers we have used).
> ...
> The best bet is to use the same venders compiler for both languages,
> or by making C++ the main, and having it call the adainit ...

This seems like the simplest approach.  Make C++ the main routine
as long as you have any C++ code in the program.  However, if
your C++ compiler allows you to create a DLL, then the necessary
initialization should happen automatically as part of attaching
to the DLL.

> -scott

> ps. anyone know if the ISO standard for C++ will include elaboration control
> at the API level?

I don't believe so.

-Tucker Taft  [log in to unmask]