comp.lang.ada
 help / color / mirror / Atom feed
From: jimmaureenrogers@worldnet.att.net (Jim Rogers)
Subject: Re: generic arrays?
Date: 20 Feb 2004 13:06:28 -0800
Date: 2004-02-20T13:06:28-08:00	[thread overview]
Message-ID: <82347202.0402201306.1fd27ee0@posting.google.com> (raw)
In-Reply-To: f4qZb.72$b_4.18@newsfe1-win

chris <spamoff.danx@ntlworld.com> wrote in message news:<f4qZb.72$b_4.18@newsfe1-win>...
> Hi,

<snip>
 
> 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).

Try a discriminated record rather than a generic.

type Foo_Array is array(Positive range <>) of float;

type TP (Max : Positive) is record
   X : Foo_Array(1..Max);
end record;

Jim Rogers



      parent reply	other threads:[~2004-02-20 21:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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