From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7c5529e60468e3e0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-20 13:06:29 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: jimmaureenrogers@worldnet.att.net (Jim Rogers) Newsgroups: comp.lang.ada Subject: Re: generic arrays? Date: 20 Feb 2004 13:06:28 -0800 Organization: http://groups.google.com Message-ID: <82347202.0402201306.1fd27ee0@posting.google.com> References: NNTP-Posting-Host: 209.194.156.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1077311188 18161 127.0.0.1 (20 Feb 2004 21:06:28 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 20 Feb 2004 21:06:28 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:5699 Date: 2004-02-20T13:06:28-08:00 List-Id: chris wrote in message news:... > Hi, > 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