comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: Allocating memory for class-wide types with Aonix Raven PPC cross-compiler
Date: 10 Mar 2004 20:37:46 +0000
Date: 2004-03-10T20:37:46+00:00	[thread overview]
Message-ID: <x7vy8q8a15x.fsf@smaug.pushface.org> (raw)
In-Reply-To: 64897075.0403100558.69900baa@posting.google.com

paul.nardini@itt.com (Paul Nardini) writes:

> generic
>     DATA_TYPE(<>) is tagged private;
>     DATA_ACCESS_TYPE is access DATA_TYPE;
>     SIZE : POSITIVE := 256
> package List is 

> package My_List is new List(FOO_TYPE'Class,
>                             FOO_ACCESS_TYPE.
>                             256);

I would have thought your vendor's tech support would be more likely
to know .. the service tends not to be cheap, use it!

That said, although GNAT compiles a little example something like this
fine, I'm surprised .. I qouldn't have expected FOO_TYPE'Class to
match "tagged"?

-- 
Simon Wright                               100% Ada, no bugs.



      reply	other threads:[~2004-03-10 20:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-10 13:58 Allocating memory for class-wide types with Aonix Raven PPC cross-compiler Paul Nardini
2004-03-10 20:37 ` Simon Wright [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