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!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Comments requested for a couple of Ada-Comments submissions Date: Fri, 11 Jul 2014 19:30:01 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <58Kvv.9105$Zt3.1101@fx02.iad> Injection-Date: Fri, 11 Jul 2014 19:30:01 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="17186"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LjKJyMyV6hLsaLlrRWhjSB+3u9yw5i3g=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:YLptdeJxg43ADRc4ydEmaYNG/hw= Xref: news.eternal-september.org comp.lang.ada:20880 Date: 2014-07-11T19:30:01+00:00 List-Id: On 2014-07-11, Niklas Holsti wrote: > On 14-07-11 18:35 , Adam Beneschan wrote: >> >> A := (C => D, E => F, others => A.others); > > To me, this looks too much like a normal aggregate. Only at the end, > from the new form "A.others", do we see that it is a partial aggregate. > There's another potential problem with the "A.others" syntax. Unless the rules were defined carefully, or unless Randy and company decide that record components are covered by Atomic, it could result in a partial read of A instead of a full read, and we could be back to the ldr/ldrb saga once again. :-) > Also, the duplication of the word "others" is a bit ugly, and "A.others" > does not really mean anything by itself; its meaning depends on the > components listed before the "others" part. How about: > > (C => D, E => F, then others => A) > > or > > (C => D, E => F, and others => A) > "And" is far better than "then" here but I think something that says up front (before the components) that this is a partial aggregate would be even more readable. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world