From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: Rep spec still not possible.
Date: Thu, 18 Oct 2001 12:44:18 +0000 (UTC)
Date: 2001-10-18T12:44:18+00:00 [thread overview]
Message-ID: <slrn9stjku.hr.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 9qmbk4$jhb$1@newstoo.ericsson.se
* Petter Fryklund wrote:
> generic
> type Indices is range <>;
> package Structure is
> type My_Array is array (Indices) of Integer;
>
> type S is record
> X,Y : Integer;
> A : My_Array;
> end record;
>
> My_Array_Length : constant Integer :=
> Integer ((Indices'Last - Indices'First + 1) * 8);
>
> for S use record
> X at 0 range 0 .. 31;
> Y at 4 range 0 .. 31;
> A at 8 range 0 .. My_Array_Length - 1; <--- Expression not static.
Comment it out. Works.
> end record;
Use pragma Pack. As posted in this thread some articles ago.
> end Structure;
next prev parent reply other threads:[~2001-10-18 12:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-17 15:18 unconstrainted arrays Alfred Hilscher
2001-10-17 15:35 ` Lutz Donnerhacke
2001-10-17 16:28 ` Alfred Hilscher
2001-10-18 7:42 ` Lutz Donnerhacke
2001-10-18 11:03 ` Rep spec still not possible Petter Fryklund
2001-10-18 12:44 ` Lutz Donnerhacke [this message]
2001-10-18 17:10 ` Jeffrey Carter
2001-10-19 13:52 ` Exactly the prblem, how do we make a known constant value static? Petter Fryklund
2001-10-20 0:04 ` James Rogers
2001-10-20 2:53 ` Jeffrey Carter
2001-10-22 8:11 ` We still don't know how to make a " Petter Fryklund
2001-10-17 16:09 ` unconstrainted arrays Claude SIMON
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox