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 X-Google-Thread: 103376,11414a19b0e4a97a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!74.86.217.122.MISMATCH!usenet-01.nntp.cybernetik.net!nntp.cybernetik.net!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 23 Jun 2010 17:22:27 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Advice on selling Ada to a C shop Date: Wed, 23 Jun 2010 23:28:42 +0100 Reply-To: brian@shapes.demon.co.uk Message-ID: References: <101bf8f3-b823-45ee-9afd-40cbafb4b7a9@t26g2000prt.googlegroups.com> <774c25c4-3270-4ffb-ad19-366a0ab16659@i31g2000yqm.googlegroups.com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-p7rM+0Vg71x/vHbOSuK3W3+uUq1+OlKorhP0O66g6LkftKEMMR/F51qw3yw9M6FJFvOf2bcgC+n8A2o!WtkwhVChGwznwE//pnxmzQRD44g3urOGeHixV/L9AOEcNWlKaE6t4O579YVb0C357YYubc2GoZnk!9dZi X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Xref: g2news2.google.com comp.lang.ada:12878 Date: 2010-06-23T23:28:42+01:00 List-Id: On Wed, 23 Jun 2010 19:19:42 +0100, "(see below)" wrote: >On 23/06/2010 17:20, in article hvtc8u$rpp$1@speranza.aioe.org, >"anon@anon.org" wrote: > > >> Unions are one thing, but non Ada conditional structures are another! >> >> AT&T create C and the first C compiler then ... >> Also, even a logical statement may result in a true value for one >> system while being false in another. So, to solve some of these >> and others problems conditional structures were added to C instead >> of defining and enforcing a C RM. > >This is nonsense C history and nonsense Ada language genealogy. >Conditional expressions originated in Ada's direct ancestor, Algol. >I'm delighted to see their reappearance in Ada. Having cut my teeth on Algol-W, so am I. If-expressions and case-expressions in Algol-W seemed natural to me, and gave very readable code. (Though I never felt comfortable with the C syntax. Given the usual C values for true and false, it feels too much like an arithmetic-if, but with the list of choices, confusingly, in descending order!) And Ada is not alone in modern languages; they are also coming back in sequential code in VHDL-2008 (with different syntax, alas). VHDL has always had them among its concurrent statements. - Brian