From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8247c32bb1260c74 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-23 12:28:43 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!slip139-92-106-132.olt.ch.prserv.NET!not-for-mail From: Vinzent Hoefler Newsgroups: comp.lang.ada Subject: Re: Q re pack & aliased Date: Wed, 23 Apr 2003 21:28:03 +0200 Organization: JeLlyFish software Message-ID: References: NNTP-Posting-Host: slip139-92-106-132.olt.ch.prserv.net (139.92.106.132) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: fu-berlin.de 1051126122 7371996 139.92.106.132 (16 [175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:36434 Date: 2003-04-23T21:28:03+02:00 List-Id: 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 =3D ...". 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. --=20 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.