generic arrays?
From: chris (spamoff.danx_at_ntlworld.com)
Date: 02/20/04
- Next message: David C. Hoos: "Re: looking for a library to handle big numbers"
- Previous message: Craig Carey: "Re: delphi to ada translator"
- Next in thread: Jeffrey Carter: "Re: generic arrays?"
- Reply: Jeffrey Carter: "Re: generic arrays?"
- Reply: Jim Rogers: "Re: generic arrays?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 20 Feb 2004 15:58:13 +0000
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 message: David C. Hoos: "Re: looking for a library to handle big numbers"
- Previous message: Craig Carey: "Re: delphi to ada translator"
- Next in thread: Jeffrey Carter: "Re: generic arrays?"
- Reply: Jeffrey Carter: "Re: generic arrays?"
- Reply: Jim Rogers: "Re: generic arrays?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|