From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Packed array size question....
Date: 1997/03/16
Date: 1997-03-16T00:00:00+00:00 [thread overview]
Message-ID: <dewar.858568318@merv> (raw)
In-Reply-To: mheaney-ya023680001603971621360001@news.ni.net
Mathew Heaney wrote:
<<declare
O : T;
begin
write (addr => O'Address, nbytes => O'Size / 8);
end;>>
Better is O'Size / Storage_Unit -- makes it clearer what is going on, and
indeed to be absolutely right, you should write
(O'Size + (Storage_Unit - 1)) / Storage_Unit
which is an annoying mouthful, and i agree that an attribute would be nice.
We considered adding it to GNAT, but it would seem to create confusion,
given the Value_Size vs Object_Size issue.
next prev parent reply other threads:[~1997-03-16 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-07 0:00 Packed array size question Marc Bejerano
1997-03-07 0:00 ` Robert Dewar
1997-03-13 0:00 ` Matthew Heaney
[not found] ` <01bc300c$247f6200$0e096dce@my-pc.neosoft.com>
1997-03-15 0:00 ` Robert Dewar
1997-03-16 0:00 ` Matthew Heaney
1997-03-16 0:00 ` Robert Dewar [this message]
1997-03-19 0:00 ` Dale Stanbrough
1997-03-21 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