comp.lang.ada
 help / color / mirror / Atom feed
* generic arrays?
@ 2004-02-20 15:58 chris
  2004-02-20 17:03 ` Jeffrey Carter
  2004-02-20 21:06 ` Jim Rogers
  0 siblings, 2 replies; 4+ messages in thread
From: chris @ 2004-02-20 15:58 UTC (permalink / raw)


Hi,

Is it possible to do something like the following?

generic
   NI : Positive;
package P is

   type IV is array (1..NI) of float;

end P;

generic
   type X is ...
package T is


type TP is record
   A : X;
end TP;

end T;

with the ability to make the type of X = type of IV?  I want to 
instansiate T with IV after instantiating P, but don't know what to make 
X.  Is there any way to avoid using an access type to hold X in the 
record TP?  (in the case where type x is an unconstrained array of floats).


Cheers,
Chris



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-02-22 16:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-20 15:58 generic arrays? chris
2004-02-20 17:03 ` Jeffrey Carter
2004-02-22 16:44   ` chris
2004-02-20 21:06 ` Jim Rogers

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