comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Package Instances???
Date: Fri, 22 Feb 2002 12:22:02 -0500
Date: 2002-02-22T17:22:02+00:00	[thread overview]
Message-ID: <a55unq$atq$1@nh.pace.co.uk> (raw)
In-Reply-To: 3C7676AF.9020404@mail.com

O.K. But please take a moment to recall that I never said that a C++ class
was "just like" an Ada tagged type. I've been stating consistently that you
can't presume that a feature of Language X is going to have an exact
parallel in Language Y. I wouldn't make the claim that a C++ class and an
Ada tagged type are plug compatible. They both have their own semantics that
aren't going to mirror-image each other and attempting to force them to be
the same is a mistake.

What I *am* claiming is that if you want to do something similar to a C++
class in Ada, that attempting to do it with a package is going to lead to
disappointing results. Using a package in conjunction with a tagged type is
the correct idiom in Ada for representing a "class" (general concept - not
C++ class).

When comparing C++ and Ada, it really is important to remember that you can
get the same end results from either language, but you can't necessarily get
those results in an identical manner.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


"Hyman Rosen" <hyrosen@mail.com> wrote in message
news:3C7676AF.9020404@mail.com...
>
> 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 17:22 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
2002-02-22 17:22                     ` Marin David Condic [this message]
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