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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e4d318dc27be1451 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Pragma pack Date: 1997/03/11 Message-ID: #1/1 X-Deja-AN: 224746200 References: <01IGC5R855Z6001KU2@EMAIL.AZ.HONEYWELL.COM> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-03-11T00:00:00+00:00 List-Id: Cory said <> The last paragraph is very wrong. The Ada 95 reference manual is pretty explit, and in fact answers, quite clearly, the first two questions, especially if you assume that IA is followed. The answer to the first question is that the pack at the higher level definitely has an effect. For example, a record of 8 booleans should take 8 bits if the record is packed, but may well take 64-bits if it is not packed. Packig a record has no effect on the representation of components (this is IA, but is followed by GNAt and other Ada 95 compilers as far as I know). So if you want the components individually packed, that must be done separately. Yes, of course the 'Size value will reflect the result of such packing. I suggest rereading the 95 RM carefully in this area!