From: Brian Rogoff <bpr@shell5.ba.best.com>
Subject: Re: packet type ?
Date: 2000/01/20
Date: 2000-01-20T00:00:00+00:00 [thread overview]
Message-ID: <Pine.BSF.4.21.0001200823090.18715-100000@shell5.ba.best.com> (raw)
In-Reply-To: 38871060.37CA@nospam.com.tj
Quite sure, but you have to fix my syntax error. :-)
-- Brian
On Thu, 20 Jan 2000, Andy S wrote:
> Brian Rogoff wrote:
> > Ada 95 also allows you to create a stack signature
> >
> > generic
> > type Item_Type is private;
> > type Stack_Type is private;
> > with procedure Push(Stack : in out Stack_Type; Item : in Item_Type);
> > with procedure Pop(Stack : in out Stack_Type; Item : out Item_Type);
> > ...
> > package Stack_Sig is begin end;
> >
> > and write code which only depends on an instantiation having that profile,
> > so that your stack code and many others can supply the stack ADT for the
> > code. This is a very nice feature of Ada 95 which is not described in many
> > Ada books; Barnes and Ben-Ari are exceptional here.
> >
> Are you sure? My GNAT compiler barffed at this one !
>
> ___________________________________________
>
> Andy Starritt
> ___________________________________________
>
prev parent reply other threads:[~2000-01-20 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
2000-01-18 0:00 ` Ted Dennison
2000-01-18 0:00 ` Brian Rogoff
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 [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