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,971aa11c293c3db1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-20 10:01:02 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-03!supernews.com!freenix!teaser.fr!nerim.net!norfair.nerim.net!not-for-mail From: "Bertrand Augereau" Newsgroups: comp.lang.ada Subject: Re: Ada The Best Language? Date: Fri, 20 Jul 2001 18:55:50 +0200 Organization: Nerim -- xDSL Internet Provider Message-ID: <9j9nie$2anj$1@norfair.nerim.net> References: <5be89e2f.0107170838.c71ad61@posting.google.com> <5be89e2f.0107180235.726d46a8@posting.google.com> <3B55B01A.DAC06D79@icn.siemens.de> <5be89e2f.0107181248.73298c57@posting.google.com> <9j949b$1ujp$1@norfair.nerim.net> <9j983r$20jq$1@norfair.nerim.net> <9j9bdh$22kn$1@norfair.nerim.net> <9j9j37$27qe$1@norfair.nerim.net> NNTP-Posting-Host: aboukir-101-2-1-inutero.adsl.nerim.net X-Trace: norfair.nerim.net 995647886 76531 62.4.19.69 (20 Jul 2001 16:51:26 GMT) X-Complaints-To: abuse@nerim.net NNTP-Posting-Date: Fri, 20 Jul 2001 16:51:26 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:10353 Date: 2001-07-20T18:55:50+02:00 List-Id: > What do you expect by reading the source code line? What does really happen? > Why can this remain in production software for years? The semantics is that it is an unsigned like any other unsigned, except its capacity is different. And I would do capacity checking before this affectation, anyway. > 'guess'. No more questions. That's a bit of a nasty reaction. You don't have to be this arrogant. I myself don't use this type of code often, and I don't have any standard right there. The closest thing to a ref manual I got here, MSDN, says that for aligning on a int boundary, you have to specify a bitfield size of zero, so it must imply that other bitfields are packed, which sounds logical.