From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d140839761c7ca23,start X-Google-Attributes: gid103376,public From: wheeler@aphrodite.csed.ida.org (David Wheeler) Subject: Re: Comments on generic stack? Date: 1996/03/17 Message-ID: <4ih1ka$pku@dmsoproto.ida.org>#1/1 X-Deja-AN: 142978359 references: <199603141053.LAA21095@email.enst.fr> organization: IDA, Alexandria, Virginia newsgroups: comp.lang.ada Date: 1996-03-17T00:00:00+00:00 List-Id: 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