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!newsfeed1.swip.net!uio.no!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 11 Jul 2014 13:56:30 +0200 From: "G.B." User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada's ranking of popularity at IEEE Spectrum References: <72b1318a-2eb6-4129-af9b-5bcfbb329c5b@googlegroups.com> <3889b2f4-b7c4-4fb0-9f37-6fc56400b1d7@googlegroups.com> <8OednWik9bvZACfORVn_vwA@giganews.com> <13bda335-c7a0-47e0-9127-d4c3e80751d9@googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <53bfd0ed$0$6700$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 11 Jul 2014 13:56:29 CEST NNTP-Posting-Host: 2b37928d.newsspool2.arcor-online.net X-Trace: DXC=@:a]ckMdJYB6PJ?[X6JIXEA9EHlD;3YcB4Fo<]lROoRA8kFJLh>_cHTX3jMcjCRKF1JV2A X-Complaints-To: usenet-abuse@arcor.de Xref: news.eternal-september.org comp.lang.ada:20869 Date: 2014-07-11T13:56:29+02:00 List-Id: On 10.07.14 20:30, Nasser M. Abbasi wrote: > On 7/10/2014 1:18 PM, Nasser M. Abbasi wrote: > >> >> One thing that can be done is concentrate on things that are unique >> or done much better in Ada. > int& i = *(int*)0xA100; > ---------------------- > > Anyone looking at the above 2 examples, can see that Ada is much > more clear. Actually anyone who does not even know Ada can > understand what the code does. Try that with the C++ version! That's more of the anti-C++ fallacy. I think it won't help. Arguably, it seems equally clear that anyone with a little background in C++ finds the above declaration very clear, brief, and all on one line, as should be. The Ada example as given has incorrect syntax, because 16#A100# alone is not of type System.Address. Now Ada requires recent GNATs that support something which is finally close to a single declaration, viz. use System.Storage_Elements; I : Integer with Address => To_Address (16#A100#); (The old Ada syntax, "for I use at ..." is obsolescent, but still present as well, and you start wondering why they have changed this very fundamental expression three times.) I think that typed literals would be even better...