comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Representation clauses and records
Date: 1997/11/25
Date: 1997-11-25T00:00:00+00:00	[thread overview]
Message-ID: <dewar.880513952@merv> (raw)
In-Reply-To: $KkaFGAY1de0EwuV@dowie-cs.demon.co.uk


Martin says

<<also, from what i remember, there is no obligation on a compiler vendor
to actual 'do' anything with a predefinde pragma other than recognise
it. why not 'for space_optimized_array_type'size use space_optimised_arr
ay_element'storage_size'?..
>>

No, you remember wrong (or perhaps you are trying to remember Ada 83). In
Ada 95, if annex C is supported, pragma Pack very definitely cannot be
ignored. The exact rules for what it must support are clear in the RM.

There is some implementation dependence, to be sure. For example, packing
2 bit quantities must be tight, but packing 3 bit quantities can either
be tight, or use 4 bits/element on a typical machine.





  reply	other threads:[~1997-11-25  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   ` Matthew Heaney
1997-11-21  0:00   ` Brian Nettleton
1997-11-24  0:00     ` Martin M Dowie
1997-11-25  0:00       ` Robert Dewar [this message]
1997-11-27  0:00         ` Martin M Dowie
     [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         ` Tucker Taft
1997-12-18  0:00         ` Robert Dewar
replies disabled

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