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!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: AI12-0218: What is the portable representation clause for processing IETF packets on little-endian machines? Date: Mon, 14 May 2018 17:43:56 -0500 Organization: JSA Research & Innovation Message-ID: References: <9af47760-e731-4cb5-a1a0-d63e31019ce5@googlegroups.com><877eob1cc6.fsf@nightsong.com><5c9b9f90-884f-4de7-8663-d39a67949f4f@googlegroups.com> Injection-Date: Mon, 14 May 2018 22:43:57 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="30904"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:52347 Date: 2018-05-14T17:43:56-05:00 List-Id: "Simon Wright" wrote in message news:lypo21ic5j.fsf@pushface.org... > "Jeffrey R. Carter" writes: > >> On 05/11/2018 11:39 PM, Simon Wright wrote: >>> >>> whereas Ada2012 says >>> >>> "To convert a record from one representation to another, two >>> record types with a common ancestor type need to be declared, >>> with no inherited subprograms." >>> >>> which seems to require _three_ types. >> >> The example in 13.6 shows this with only 2 types. This is because a >> type is defined to be its own ancestor (ARM 3.4.1). > > I saw the example. I stand by my statement that it's confusing. > > Perhaps there needs to be a way to mark a language usage as > domain-specific rather than natural; in English, I am not my own > ancestor (or descendant). That's easy compared to "part" (also a technical term, also includes the entire item, also gets confused all the time, even by people who know better). If a word in the RM is more than 6 characters or so, assume it is a technical term and look it up; only assume the English meaning if it isn't found when looking it up. (And you still get caught by "part", "named", and others.) We try hard to make the technical terms at least someone intuitive, but it's not possible to do that completely (else a technical term would not be needed). Modern ISO standards are supposed to have a glossary of all defined technical terms; adding one of those for Ada would take a years work (because a lot of the definitions are folded into other text), and there are a LOT of them. Randy.