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,38ceb882eed41e1e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-28 18:21:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Size and pack References: <9ff447f2.0110281701.45e0040c@posting.google.com> X-Newsreader: Tom's custom newsreader Message-ID: <633D7.83856$gT6.43463123@news1.rdc1.sfba.home.com> Date: Mon, 29 Oct 2001 02:21:54 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 1004322114 24.7.82.199 (Sun, 28 Oct 2001 18:21:54 PST) NNTP-Posting-Date: Sun, 28 Oct 2001 18:21:54 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:15322 Date: 2001-10-29T02:21:54+00:00 List-Id: >Is having, "for Rx_Header_Data'size use 8*11;" better than pragma >pack? What is the rational? What I want is an 11 byte record. What a future maintainer might need to know is that it's an 11 byte record. Perhaps "pragma pack" is a way to accomplish that, and perhaps it will be obvious to a future maintainer that such a record, when packed, is 11 bytes long, but it would take mental energy, and be susceptible to error, to be sure. If I didn't care about the layout, but just wanted to minimize storage, then using "pragma pack" would be easier.