comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Nettleton <bn@aonix.com>
Subject: Re: Representation clauses and records
Date: 1997/11/21
Date: 1997-11-21T00:00:00+00:00	[thread overview]
Message-ID: <3475F2DF.80B1E349@aonix.com> (raw)
In-Reply-To: 3475F02C.5585B1B6@aonix.com


Oops, my example has an error.

Brian Nettleton wrote:

>   for Space_Optimized_Array_Element use record
>     at mod 1;
>     Field1 at 0 range 0 .. 31;

>     Field2 at 4 range 0 .. 8;

Should be "Field2 at 4 range 0 .. 7;"

>   end record;
>
>   type Space_Optimized_Array_Type is array (1..2) of
> Space_Optimized_Array_Element;
>   pragma Pack(Space_Optimized_Array); -- Ada83 method to assure space opt.
>
>   Space_Optimized_Array : Space_Optimized_Array_Type;
>
> And:
>
>   type Time_Optimized_Array_Element is record
>     Field1 : Integer;
>     Field2 : Boolean;
>   end record;
>
>   for Time_Optimized_Array_Element use record
>     at mod 4;
>     Field1 at 0 range 0 .. 31;
>     Field2 at 4 range 0 .. 8;

And again "Field2 at 4 range 0 .. 7;"



-Brian Nettleton





  reply	other threads:[~1997-11-21  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <347000b1.4909762@news.geccs.gecm.com>
1997-11-21  0:00 ` Representation clauses and records Brian Nettleton
1997-11-21  0:00   ` Brian Nettleton [this message]
1997-11-24  0:00     ` Martin M Dowie
1997-11-25  0:00       ` Robert Dewar
1997-11-27  0:00         ` Martin M Dowie
1997-11-21  0:00   ` Matthew Heaney
     [not found]   ` <347a8dc3.3438484@news.geccs.gecm.com>
1997-11-25  0:00     ` Matthew Heaney
1997-12-16  0:00 ` Pascal MALAISE
1997-12-16  0:00   ` Larry Kilgallen
1997-12-17  0:00     ` Pascal MALAISE
1997-12-18  0:00       ` David J. Fiander
1997-12-18  0:00         ` Robert Dewar
1997-12-18  0:00         ` Tucker Taft
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox