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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: Ada's ranking of popularity at IEEE Spectrum Date: Thu, 10 Jul 2014 13:30:03 -0500 Organization: Aioe.org NNTP Server Message-ID: 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> Reply-To: nma@12000.org NNTP-Posting-Host: +bGw3iKtw0btMD059xlTWg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:20845 Date: 2014-07-10T13:30:03-05:00 List-Id: 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. Also things that can be done in more clear way. I like browsing http://rosettacode.org sometimes and compare how different languages do somethings. For example, looking at http://rosettacode.org/wiki/Address_of_a_variable "Demonstrate how to get the address of a variable and how to set the address of a variable" Ada way: ---------- The_Address : System.Address; I : Integer; The_Address := I'Address; -- read for I'Address use 16#A100#; --- set -------------------- C++ way: ----------- int i; void* address_of_i = &i; "While C++ doesn't directly support putting a variable at a given address, the same effect can be achieved by creating a reference to that address: " 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! --Nasser