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!newsfeed.news.ucla.edu!usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Oberon and Wirthian languages Date: Sat, 26 Apr 2014 17:15:09 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <1ljwj8f.1wqbhvuabsdw1N%csampson@inetworld.net> <51c7d6d4-e3be-44d5-a4ce-f7e875345588@googlegroups.com> <%J32v.70539$kp1.45343@fx14.iad> <8761m535e4.fsf_-_@ludovic-brenta.org> <535b5005$0$6700$9b4e6d93@newsspool2.arcor-online.net> Injection-Date: Sat, 26 Apr 2014 17:15:09 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e458ff8b81bc0c159989eb0e36c6e372"; logging-data="21716"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Z1mU6pVZnqzgQn/JpO4j+isRV8YZzEbs=" User-Agent: slrn/0.9.8.1 (VMS/Multinet) Cancel-Lock: sha1:Mw6gnWqh5q//Y1XyWb6Yl6FEuKY= Xref: number.nntp.dca.giganews.com comp.lang.ada:186108 Date: 2014-04-26T17:15:09+00:00 List-Id: On 2014-04-26, Niklas Holsti wrote: > On 14-04-26 09:19 , Georg Bauhaus wrote: >> On 25/04/14 23:55, Randy Brukardt wrote: >>> 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. As some other posters have said, I do think a unique keyword or attribute would be required and I agree with you the actual choice of word matters. >> >> Hasn't GNAT recently added something similar, >> http://gcc.gnu.org/onlinedocs/gnat_rm/Attribute-Update.html#Attribute-Update Thanks for the link; I had not come across this until now. > > Interesting. There does seem to be a need for this kind of thing, then. > Indeed. Once I started thinking in terms of aggregates I didn't know about the above Update attribute and it only took me a few minutes to come up with using the same attribute name on the LHS of an assignment. For ACT to have added something similar would indeed seem to strongly imply something like this is needed in Ada. > However, the GNAT implementation does not allow changing discriminants, > which was the main use-case that Randy told of in the Janus/Ada > compiler. It seems a reasonable limitation to me. > I also would not have a problem with that limitation. Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world