comp.lang.ada
 help / color / mirror / Atom feed
From: quiggle@lovelace.wpd.sgi.com (Tom Quiggle)
Subject: Re: SGI inheriting C++ classes ...
Date: 23 Nov 1994 17:42:47 GMT
Date: 1994-11-23T17:42:47+00:00	[thread overview]
Message-ID: <3avuun$lb8@fido.asd.sgi.com> (raw)
In-Reply-To: 3asuuv$blb@gnat.cs.nyu.edu


In article <3asuuv$blb@gnat.cs.nyu.edu>, dewar@cs.nyu.edu writes:
> Bill, regarding your "no more than 200 calls". You have a very peculiar
> idea of what is going on. The bindings are not just a bunch of procedure
> calls that are independent and may or may not be used.
> 
> For each C++ class that is duplicated exactly on the Ada side, there is
> a large body of C++, and hence Ada 9X binding, code that describes the
> structure of the class. When you use such a class in Ada 9X, you may not
> explicitly be calling all the member functions, but they all have to be
> properly declared and understood by the 9X binding, so that the data
> structures, including dispatching tables, are layed out right.
> 
> Thus a single call, or declaration of an object, in the 9X code, can
> very well involve hundreds of lines of interface code, which must be
> exactly right for the single call to work right.

Robert is exactly correct.  For example, the single 'Player' class that
implements each of the two players in the game is defined in terms of 18
other classes, and '#include's 20 header files (each of which includes
several other header files).  In order to use the Player class, we need
to correctly represent it in Ada.  When you look at the transitive closure
of all the dependent declarations, you wind up with a large number of Ada
specifications.

------
Tom Quiggle                                                quiggle@sgi.com
Silicon Graphics					   (415) 390 - 2884



      reply	other threads:[~1994-11-23 17:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-17 21:46 SGI inheriting C++ classes Bennett, Chip (KTR) ~U
1994-11-18  2:47 ` David Weller
1994-11-18 23:09 ` Tom Quiggle
1994-11-19  5:13   ` Cyrille Comar
1994-11-19  7:12 ` Robert Dewar
1994-11-21 15:09   ` R. William Beckwith
1994-11-22 14:24     ` Robert Dewar
1994-11-23 17:42       ` Tom Quiggle [this message]
replies disabled

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