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: Thu, 10 Jan 2008 22:20:37 -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 1200077925 26654 69.95.181.76 (11 Jan 2008 18:58:45 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 11 Jan 2008 18:58:45 +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:19322 Date: 2008-01-10T22:20:37-06:00 List-Id: "okellogg" wrote in message news:a244cc70-8735-468d-a0ad-b2b659b6d58e@v67g2000hse.googlegroups.com... > -- File: main.adb > -- Can we portably rely on pragma Pack taking precedence > -- over Convention C? The ARG has argued similar questions as part of AI05-0012. And when I say argue, I meant it -- this was one of the most contentious issues that I can remember in the ARG. About all we were able to agree on was that the Implementation Advice for Pack requires things that are impossible. It got bad enough that we tabled the AI completely; we're not planning to try to resolve it in the near future. One of the points of contention was that "best efforts" packing is good enough (even when the IA says something else). Another point of contention is whether the pragma should be rejected if "best efforts" packing causes none at all. Moral: avoid Pack for anything where the representation matters to portability. Use 'Component_Size instead. Randy.