comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Rogoff <bpr@shell5.ba.best.com>
Subject: Re: Please help a newbie with Booch/Ada.
Date: 1998/09/01
Date: 1998-09-01T00:00:00+00:00	[thread overview]
Message-ID: <Pine.BSF.4.02A.9809011511030.115-100000@shell5.ba.best.com> (raw)
In-Reply-To: m3g1eer5uf.fsf@mheaney.ni.net

On Sun, 30 Aug 1998, Matthew Heaney wrote:
> Stephen Leake <Stephen.Leake@gsfc.nasa.gov> writes:
> 
> > Better would be to fix the Ada 95 Booch components to allow indefinite
> > types. Find the declaration of Bc.Containers, and add "(<>)" as a
> > discriminant to the object type. Be aware this might break lots of
> > stuff; I haven't tried it.
> 
> ... snip ... 
> 
> A component library can't be all things to all people.  Better is to
> provide a small-ish set of primitives from which clients can compose
> their own custom-built abstractions.
> 
> Making all the containers take indefinate subtypes would be the worst of
> all possible decisions, because that would mean _every_ instantiation
> would use heap, even those clients that have definate subtypes.

I agree, but let me note that when a library provides a set of reusable 
generic signatures, I think its a good idea that the parameters to those
signatures be as general as possible, which may mean generic formal 
indefinite limited private types (what a mouthful!).

-- Brian





      reply	other threads:[~1998-09-01  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-20  0:00 Please help a newbie with Booch/Ada Lengyel Sandor
1998-08-21  0:00 ` Stephen Leake
1998-08-21  0:00   ` Lengyel Sandor
1998-08-27  0:00   ` Simon Wright
1998-08-30  0:00   ` Matthew Heaney
1998-09-01  0:00     ` Brian Rogoff [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