comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Subject: Re: Comments requested for a couple of Ada-Comments submissions
Date: Fri, 11 Jul 2014 19:30:01 +0000 (UTC)
Date: 2014-07-11T19:30:01+00:00	[thread overview]
Message-ID: <lppdvp$gp2$1@dont-email.me> (raw)
In-Reply-To: c2al2lFj394U1@mid.individual.net

On 2014-07-11, Niklas Holsti <niklas.holsti@tidorum.invalid> 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

      parent reply	other threads:[~2014-07-11 19:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-11  0:02 Comments requested for a couple of Ada-Comments submissions Simon Clubley
2014-07-11  0:30 ` Jeffrey Carter
2014-07-11  4:16   ` Randy Brukardt
2014-07-11 16:04     ` Niklas Holsti
2014-07-11 16:24       ` Dan'l Miller
2014-07-11 20:02       ` Simon Clubley
2014-07-12  5:52         ` Niklas Holsti
2014-07-11  4:26 ` Randy Brukardt
2014-07-11  7:05   ` Simon Clubley
2014-07-11  4:56 ` Shark8
2014-07-11 15:35   ` Adam Beneschan
2014-07-11 17:26     ` Niklas Holsti
2014-07-11 17:55       ` Adam Beneschan
2014-07-11 18:00         ` Simon Wright
2014-07-11 19:07           ` Georg Bauhaus
2014-07-11 19:10           ` Dmitry A. Kazakov
2014-07-11 19:16             ` Niklas Holsti
2014-07-11 19:35               ` Dmitry A. Kazakov
2014-07-11 21:24             ` Randy Brukardt
2014-07-11 21:46               ` Shark8
2014-07-11 19:30       ` Simon Clubley [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox