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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,167fc3ed1f7df035 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.236.198 with SMTP id uw6mr120394pbc.3.1334264426430; Thu, 12 Apr 2012 14:00:26 -0700 (PDT) Path: r9ni49049pbh.0!nntp.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!newsfeed.utanet.at!newsfeed.tele2net.at!weretis.net!feeder4.news.weretis.net!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: C's sizeof Date: Thu, 12 Apr 2012 13:59:58 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <10939468.224.1334249018393.JavaMail.geo-discussion-forums@yngq4> <11092332.346.1334257093663.JavaMail.geo-discussion-forums@ynhh34> NNTP-Posting-Host: b8be10fae51a1100c416ff7eb0ff86e0 Mime-Version: 1.0 X-Trace: 56cc98404034e7441b98fc8695b7b25d X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <11092332.346.1334257093663.JavaMail.geo-discussion-forums@ynhh34> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=56cc98404034e7441b98fc8695b7b25d X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-04-12T13:59:58-07:00 List-Id: On 04/12/2012 11:58 AM, Adam Beneschan wrote: >> >> type N2 is range 0 .. Integer'Last - 1; >> pragma Convention (C, N2); >> >> and N2'Size is 31 ... > > Yeah, you're right. But then I don't think your formula would work either: > > type N3 is range 0 .. 2**22 - 1; > pragma Convention (C, N3); > > and N3'Size is 22. But what would the sizeof() of the C type be? Technically, these are subtypes. C doesn't have subtypes. The C types are N1'Base and N2'Base, which are both 32 bits. -- Jeff Carter "I was hobbling along, minding my own business, all of a sudden, up he comes, cures me! One minute I'm a leper with a trade, next minute my livelihood's gone! Not so much as a 'by your leave!' You're cured, mate. Bloody do-gooder!" Monty Python's Life of Brian 76