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,d9523383d7eb42d0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-22 18:20:14 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3C4E1DD9.D0B62FDE@acm.org> From: Jeffrey Carter X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Confused about Attribute Size? References: <3C4DEE09.B34A579@Raytheon.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 23 Jan 2002 02:20:13 GMT NNTP-Posting-Host: 209.86.209.141 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1011752413 209.86.209.141 (Tue, 22 Jan 2002 18:20:13 PST) NNTP-Posting-Date: Tue, 22 Jan 2002 18:20:13 PST Organization: EarthLink Inc. -- http://www.EarthLink.net X-Received-Date: Tue, 22 Jan 2002 18:20:13 PST (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:19212 Date: 2002-01-23T02:20:13+00:00 List-Id: Mark Johnson wrote: > > > for My_Type'Size use 8; > > > Another representation specification. In this case, you are asking that > the 16 possible values to be stored in an eight bit byte (or larger). > There are several cases where the compiler can use more than 8 bits to > store My_Type... > - a record component if the record is NOT packed > - array components > - a formal parameter passed to a function or procedure > There are several pages of dense text in the Annotated Ada Reference > Manual in section 13.3 that describes this in far more detail that I > will attempt to describe - especially to a newbie. A 'Size specification on a type instructs the compiler to use that size for components of packed records and arrays. In most other cases (records with the layout specified is an exception), the compiler may use any size it chooses. -- Jeff Carter "Go and boil your bottoms." Monty Python & the Holy Grail