comp.lang.ada
 help / color / mirror / Atom feed
From: Alfred Hilscher <Alfred.Hilscher@icn.siemens.de>
Subject: Re: packet type ?
Date: 2000/01/18
Date: 2000-01-18T00:00:00+00:00	[thread overview]
Message-ID: <38845EBD.6F90845D@icn.siemens.de> (raw)
In-Reply-To: 85njs1$3rl$1@nnrp1.deja.com


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;




  reply	other threads:[~2000-01-18  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-14  0:00 packet type ? Alfred Hilscher
2000-01-14  0:00 ` Ted Dennison
2000-01-18  0:00   ` Alfred Hilscher [this message]
2000-01-18  0:00     ` Brian Rogoff
2000-01-18  0:00     ` Ted Dennison
2000-01-19  0:00     ` Anders Gidenstam
2000-01-19  0:00       ` Brian Rogoff
2000-01-20  0:00         ` Andy S
2000-01-20  0:00           ` Tucker Taft
2000-01-20  0:00           ` Brian Rogoff
replies disabled

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