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-Thread: 103376,2cbdd8de64214fc X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread2.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 MSIE X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Variant Record Sizes.. References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 19 Aug 2004 19:30:00 GMT NNTP-Posting-Host: 63.184.8.168 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.pas.earthlink.net 1092943800 63.184.8.168 (Thu, 19 Aug 2004 12:30:00 PDT) NNTP-Posting-Date: Thu, 19 Aug 2004 12:30:00 PDT Xref: g2news1.google.com comp.lang.ada:2871 Date: 2004-08-19T19:30:00+00:00 List-Id: Ganesh Ramasivan wrote: > So in case of the example below, is the size of the Test_Record 2 > bytes, even though the "use 8" clause has been specified as the other > element of the record specifies "use 16". Since your object is statically constrained, it's probably 2 bytes: 1 for the discriminant, and 1 for the field. If you use the other value for the discriminant, it will probably be 4 bytes: 1 for the discriminant, 2 for the field, and 1 for alignment. -- Jeff Carter "Sons of a silly person." Monty Python & the Holy Grail 02