comp.lang.ada
 help / color / mirror / Atom feed
From: Vinzent Hoefler <ada.rocks@jlfencey.com>
Subject: Re: Q re pack & aliased
Date: Wed, 23 Apr 2003 21:28:03 +0200
Date: 2003-04-23T21:28:03+02:00	[thread overview]
Message-ID: <b86ph4$70v6s$2@ID-175126.news.dfncis.de> (raw)
In-Reply-To: rVzpa.346022$Zo.75904@sccrnsc03

tmoran@acm.org wrote:

>|   x : bunches (1 .. 10);
>|   for x'Size use 240;
>  Unfortunately, one rarely knows the width of an image file at
>compile time.

Yes, of course.

I just left it in to make sure the compiler does what it should do
even for the array. It doesn't really matter.

>  What does your program print with and without
>the "for x'Size use 240;"?

The same, it says "3 = ...". As it should. It makes no difference
either if the attribute is specified or not.

>  I'm sorry if that wasn't clear.  My "24-bit-type" is indeed
>a record, just like your example.  The sole difference is the
>addition of a specific layout for the color components:
>    for Triple_Color_Type use record
>        Blue  at 0 range 0 .. 7;
>        Green at 1 range 0 .. 7;
>        Red   at 2 range 0 .. 7;
>    end record;

Well, now it gets strange.

I just tried that and added the representation clause to the example
code I posted. It still compiles without any warning and seems to
generate the correct code, too.

I just tried it on both 3.15p for Windows and Linux.

But with your examplary 24-bit-type you used before both versions
(3.14 for Windows and 3.15 Win/Linux) showed the problem exactly as
you described here.


Vinzent.

-- 
Parents strongly cautioned  --  this  posting  is  intended for mature
audiences  over  18.  It  may  contain some material that many parents
would not find suitable for children and may include intense violence,
sexual situations, coarse language and suggestive dialogue.



  reply	other threads:[~2003-04-23 19:28 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
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 [this message]
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