comp.lang.ada
 help / color / mirror / Atom feed
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: Package Instances???
Date: Fri, 22 Feb 2002 11:49:51 -0500
Date: 2002-02-22T11:49:51-05:00	[thread overview]
Message-ID: <3C7676AF.9020404@mail.com> (raw)
In-Reply-To: a52urt$qhg$1@nh.pace.co.uk

Depending on how one builds it, a C++ class or class template
can fulfill the role of an Ada package, record, or tagged type.
That's just the way it is.

To examine equivalent capabilities in the two languages, you
*must* use a C++ class to emulate an Ada package, otherwise
there will be all sorts of things that you can do in Ada that
won't be possible in C++.

It is simplistic and wrong to argue that a C++ class is just
like an Ada tagged type. That just is not how classes are used
in modern C++. It may appear to be cobbled together because of
the C heritage, and because a lot of the idioms were discovered
late in the game, but the non-tagged-type usages are at least
as important and useful as the OO stuff.




  reply	other threads:[~2002-02-22 16:49 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-13 21:02 Package Instances??? Yates
2002-02-13 21:12 ` Larry Kilgallen
2002-02-13 21:21 ` chris.danx
2002-02-13 21:46 ` Marin David Condic
2002-02-14 17:59   ` Hyman Rosen
2002-02-15 13:11     ` Marc A. Criley
2002-02-15 19:20     ` Simon Wright
2002-02-19 14:08       ` Marin David Condic
2002-02-20  1:37         ` Matthew Heaney
2002-02-20 16:56           ` Marin David Condic
2002-02-21 15:33             ` Matthew Heaney
2002-02-20 19:16           ` Hyman Rosen
2002-02-20 22:31             ` Pat Rogers
2002-02-20 23:44             ` Matthew Heaney
2002-02-21  5:35               ` Hyman Rosen
2002-02-21 14:05                 ` Marin David Condic
2002-02-22 16:49                   ` Hyman Rosen [this message]
2002-02-22 17:22                     ` Marin David Condic
2002-02-24  7:39                       ` Hyman Rosen
2002-02-25 15:38                         ` Matthew Heaney
2002-02-22 18:10                     ` Matthew Heaney
2002-02-22 20:55                       ` Hyman Rosen
2002-02-22 21:37                         ` Matthew Heaney
2002-02-24  7:36                           ` Hyman Rosen
2002-02-25 15:27                             ` Matthew Heaney
2002-02-21 15:30                 ` Matthew Heaney
2002-02-21 18:05                   ` Hyman Rosen
2002-02-13 21:50 ` Eric Merritt
2002-02-14 15:08 ` Yates
replies disabled

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