From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Packed array size question....
Date: 1997/03/07
Date: 1997-03-07T00:00:00+00:00 [thread overview]
Message-ID: <dewar.857784634@merv> (raw)
In-Reply-To: 01bc2b36$b64477a0$f5093e9f@lsm8-pc.linkabit.titan.com
Marc says
<<type foo is array (1..512) of character
foo'size reports it to be 4096 bytes in length.
I tried:
pragma pack (foo)
I tried:
for foo'size use 512;
none of them work! help! I am going out of my mind trying to figure this
out.
Thanks in advance,
Marc>>
A good idea in such a case is to check your assumptions. You are assuming
that Size yields the size in storage units, but let's read the RM:
40 X'Size
Denotes the size in bits of the representation of the object.
The value of this attribute is of the type universal_integer.
Ah ha! bits!!!
:-)
next prev parent reply other threads:[~1997-03-07 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 [this message]
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
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