From: chris <spamoff.danx@ntlworld.com>
Subject: generic arrays?
Date: Fri, 20 Feb 2004 15:58:13 +0000
Date: 2004-02-20T15:58:13+00:00 [thread overview]
Message-ID: <f4qZb.72$b_4.18@newsfe1-win> (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
next reply other threads:[~2004-02-20 15:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-20 15:58 chris [this message]
2004-02-20 17:03 ` generic arrays? Jeffrey Carter
2004-02-22 16:44 ` chris
2004-02-20 21:06 ` Jim Rogers
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox