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,642c983bc89db880 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: pragma Pack vs. Convention C, portability issue? Date: Fri, 11 Jan 2008 22:58:47 -0600 Organization: Jacob's private Usenet server Message-ID: References: NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1200113944 7787 69.95.181.76 (12 Jan 2008 04:59:04 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 12 Jan 2008 04:59:04 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1914 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914 Xref: g2news1.google.com comp.lang.ada:19338 Date: 2008-01-11T22:58:47-06:00 List-Id: "(see below)" wrote in message news:C3AD79A1.D95EF%yaldnif.w@blueyonder.co.uk... ... > What is the view on combinations like this: > > type seive is array (pos_integral range <>) of Boolean; > for seive'component_size use 8; > pragma pack(seive); Send that to the Dept. of Redundancy Department. The Pack has (and can have) no effect, so there is no reason to give it. That was one of the points of contention: if the pragma can have no effect because of some other reason (by-reference types, atomic types, other rep. clauses), some of us thought it should be rejected (it seems to promise something it can't deliver - just ignoring it seems harmful). My preference is to avoid Pack altogether. (We probably took that too far with Janus/Ada: we never even implemented it. ;-) Randy.