From: tmoran@acm.org
Subject: Re: Q re pack & aliased
Date: Tue, 22 Apr 2003 16:44:18 GMT
Date: 2003-04-22T16:44:18+00:00 [thread overview]
Message-ID: <Cjepa.568837$L1.166648@sccrnsc02> (raw)
In-Reply-To: b83qni$619nm$1@ID-175126.news.dfncis.de
>The first True-Color-VGA had 24-bit-sized pixels. How would you have
>addressed them?
I have pre-Gnat 3.15p programs that ran with 24 bit pixels, so this
is apparently a new problem. Would someone with a newer Gnat please
try the program below? On 3.15p it gives a warning on aliased, and ignores
the packing. Removing the word "aliased" makes it pack correctly.
with ada.text_io;
procedure testpack is
type triples is range 0 .. 2**24-1;
for triples'size use 24;
type bunches is array(integer range <>) of aliased triples;
pragma pack(bunches);
x : bunches(1 .. 10);
begin
ada.text_io.put_line(integer'image(x'size/80)
& " should = 3, not 4");
end testpack;
next prev parent reply other threads:[~2003-04-22 16:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-20 1:08 Q re pack & aliased tmoran
2003-04-20 11:40 ` David Holm
2003-04-21 4:44 ` tmoran
2003-04-22 16:08 ` Jacob Sparre Andersen
2003-04-22 16:30 ` Vinzent Hoefler
2003-04-22 16:44 ` tmoran [this message]
2003-04-22 17:23 ` Stephen Leake
2003-04-22 21:45 ` Robert A Duff
2003-04-22 22:25 ` tmoran
2003-04-22 23:10 ` Nick Roberts
2003-04-23 0:24 ` tmoran
2003-04-23 8:07 ` Vinzent Hoefler
2003-04-23 17:18 ` tmoran
2003-04-23 19:28 ` Vinzent Hoefler
2003-04-23 11:52 ` Martin Dowie
2003-04-25 16:06 ` Nick Roberts
2003-04-25 16:38 ` Vinzent Hoefler
2003-04-22 22:51 ` Matthew Heaney
2003-04-22 23:16 ` Nick Roberts
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox