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 Programming Language Advocacy (83 & 95)" <[log in to unmask]>
Date: Tue, 14 Dec 2004 20:02:19 -0800
Reply-To: Chris Sparks <[log in to unmask]>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
In-Reply-To: <[log in to unmask]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
From: Chris Sparks <[log in to unmask]>
Parts/Attachments: text/plain (20 lines)
I am currently working on a project that is doing Ada 95 bindings to C++
and it is a virtual nightmare.  Very high learning curve and I still
don't think I got it.  Does anyone have a nice "cheat sheet" that
describes a C++ object oriented ism to an Ada 95 way of doing it.

For example:
class A {
  int Func (const A& p1);
package A is
  type Object is tagged null record;
  function Func (This : in out Object;
                         p1   : in       Object'Class)
                                  return Integer;
end A;

Well you get the idea, how do you make correct parameter associations, etc.