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!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Comments requested for a couple of Ada-Comments submissions Date: Sat, 12 Jul 2014 08:52:48 +0300 Organization: Tidorum Ltd Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net Rq4Ihkb6F/gxI2zjq24cBQ2ojbKJj9Aoro4gsfu9+NPO0px3gj Cancel-Lock: sha1:UfD9mSFBj2flAZHMFcxMKQN3Hlg= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:20887 Date: 2014-07-12T08:52:48+03:00 List-Id: On 14-07-11 23:02 , Simon Clubley wrote: > On 2014-07-11, Niklas Holsti wrote: >> I think that this proposal should not be limited to solving the "update >> of atomic" problem. The ability to write an aggregate that generates a >> composite value by giving new values for just some of the components of >> an existing composite value is quite useful in any context where a >> composite value is used. >> > > That is a very good point. I will add wording that makes it clear the > exact same syntax could be used for general updating of, say, records > in general. > > It does raise another point, however. So far, I have only thought about > non-discriminated records due to my focus on device registers. Are > there any additional issues when discriminated records are involved ? It seems to me that the legality and semantics of a partial aggregate are easily defined by treating the partial aggregate as a syntactic abbrevation of the corresponding full aggregate, that is, as syntactic sugar. This should work even if some of the components named in the partial aggregate are discriminants. The only additional dynamic semantics to be defined are the indivisible read ("as a whole") of an atomic object and the single read of a volatile object, as you already have written in your proposal. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .