comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Package Instances???
Date: Tue, 19 Feb 2002 09:08:07 -0500
Date: 2002-02-19T14:08:09+00:00	[thread overview]
Message-ID: <a4tm89$ajg$1@nh.pace.co.uk> (raw)
In-Reply-To: x7v8z9u7dsk.fsf@smaug.pushface.org

In the simplest case where the generic package had no generic parameters and
only a collection of data objects & subprograms, it would look very similar
to a C++ "class" in many respects. The important part being that it would
only *look* like a C++ class. Semantically the whole analogy starts to fall
apart once you start picking at the loose threads.

Obviously, as you observe, once you start changing what the generic actually
says, the distinction between a generic package and a "class" starts
becoming more apparent. In general, I'd think it would be wise not to try to
use a generic package to represent a "class" in the way it appears to have
been intended. Its just the wrong idiom in Ada to do what a C++ class does.

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/


"Simon Wright" <simon@pushface.org> wrote in message
news:x7v8z9u7dsk.fsf@smaug.pushface.org...
>
> But different instantiations would be different "classes". I guess
> that depends on what the generic actually says.





  reply	other threads:[~2002-02-19 14:08 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 [this message]
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
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