comp.lang.ada
 help / color / mirror / Atom feed
From: wheeler@aphrodite.csed.ida.org (David Wheeler)
Subject: Re: Comments on generic stack?
Date: 1996/03/17
Date: 1996-03-17T00:00:00+00:00	[thread overview]
Message-ID: <4ih1ka$pku@dmsoproto.ida.org> (raw)
In-Reply-To: 199603141053.LAA21095@email.enst.fr

Jean-Pierre Rosen (rosen@EMAIL.ENST.FR) wrote:
: At 14:11 13/03/1996 GMT, you wrote:
: >
: >  with Ada.Finalization; use Ada.Finalization;
: >
: >  generic
: >    type Item is private;
: >
: >  package Generic_Stack is
: >    type Stack is new Controlled with private; -- permit assignment.
: Why do you need to make it visibly derived from controlled ? Seems to me that
:      type  Stack is private;
: would be OK (even if completed as derived from Controlled).

Agreed, but by making it visibly derived you can derive controlled children
of the type. E.G.: Stacks that when created do something special.
It's a minor functionality; I think either way would be "right".

--- David





       reply	other threads:[~1996-03-17  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199603141053.LAA21095@email.enst.fr>
1996-03-17  0:00 ` David Wheeler [this message]
     [not found] <4i6l2t$j1q@dmsoproto.ida.org>
1996-03-15  0:00 ` Comments on generic stack? Michel Gauthier
1996-03-17  0:00   ` David Wheeler
1996-03-20  0:00   ` "Object" types vs. "Value" types John DiCamillo
1996-03-21  0:00     ` Comments on generic stack? John G. Volan
replies disabled

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