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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: AI12-0218: What is the portable representation clause for processing IETF packets on little-endian machines? Date: Fri, 11 May 2018 09:09:19 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="906cab77493fe040d97f450db9e7653d"; logging-data="19700"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18leyNeonS1ODs5CH62gknB5NY0NkpXPY0=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:A2vWAq6ftr3wZb//DcJ4kECyyH8= sha1:X9C0m9odgjJiaaJsyIXyRvxz99I= Xref: reader02.eternal-september.org comp.lang.ada:52252 Date: 2018-05-11T09:09:19+01:00 List-Id: "Randy Brukardt" writes: > Right. The problem with AI12-0218-1 (besides the fact that no one > other than the author understands it, and the author has not > volunteered to help), is that it makes it way too easy to put very > expensive byte-swapping code into data structures that occur > everywhere. Indeed. A project might almost make a rule that types with representation clauses should only appear in external-interface packages (and perhaps only in package bodies!)