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: border2.nntp.dca.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Oberon and Wirthian languages Date: Sat, 26 Apr 2014 12:27:37 +0300 Organization: Tidorum Ltd Message-ID: References: <1ljwj8f.1wqbhvuabsdw1N%csampson@inetworld.net> <%J32v.70539$kp1.45343@fx14.iad> <8761m535e4.fsf_-_@ludovic-brenta.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net c6AE5VmU8XfamP5zjnw+tARHu+CK00r16wbP0v+HaYmzWh4Mfe Cancel-Lock: sha1:9HsiI/zNZJ9ojrL6AWWLGwkyLZk= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: Xref: number.nntp.dca.giganews.com comp.lang.ada:186104 Date: 2014-04-26T12:27:37+03:00 List-Id: On 14-04-26 10:23 , Simon Wright wrote: > "Randy Brukardt" writes: > >> This is a case where the keyword will make all of the difference. If we were >> using a new keyword, perhaps something like: >> >> A := (A replacing C => D, E => F); >> >> would do the trick. > > I'd find > > A := (A with C => D, E => F); > > quite straightforward. Yes, but that looks exactly like an extension aggregate, where the ancestor object A is extended to a derived type with the new components C and E. Maybe the compiler would not be confused, but I would be. I think that an "updating" partial aggregate should be syntactically distinct from an extension aggregate. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .