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,ea81945e8b96701b X-Google-Attributes: gid103376,public From: Alfred Hilscher Subject: Re: packet type ? Date: 2000/01/18 Message-ID: <38845EBD.6F90845D@icn.siemens.de>#1/1 X-Deja-AN: 574197624 Content-Transfer-Encoding: 7bit References: <387F3DD1.485F7C70@icn.siemens.de> <85njs1$3rl$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Siemens AG Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-01-18T00:00:00+00:00 List-Id: Ted Dennison wrote: > > > question is obsolete. What I'm looking for is something like a > "packege > > type" (similar to "task type"). What I want do is something like this: > > > Any suggestions how to do this ? > > That's what generics with package formal parameters are for. I think thats not quite the same. Taking the example below, how would you do this with generics ? package type stack is push (item : in ...); pop (item : out ...) end stack procedure application is User_stack : stack; Supervisor_stack : stack; Interrupt_stack : stack; Any_Stack : access Stack; begin ... Any_Stack := new Stack; -- how do this ??? ... end application;