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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8d5bda3619cce0f8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!spamkiller.gnilink.net!gnilink.net!nwrddc01.gnilink.net.POSTED!7c706d3b!not-for-mail From: David Thompson Newsgroups: comp.lang.ada Subject: Re: C getchar() functionality in Ada Organization: Poor Message-ID: References: <4999ce31$0$90266$14726298@news.sunsite.dk> <%5lml.519385$TT4.153916@attbi_s22> <499a6607$0$90276$14726298@news.sunsite.dk> <499a71f2$0$14834$4f793bc4@news.tdc.fi> <499ab51b$0$30223$9b4e6d93@newsspool1.arcor-online.net> X-Newsreader: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 03 Mar 2009 08:57:30 GMT NNTP-Posting-Host: 70.104.79.44 X-Complaints-To: abuse@verizon.net X-Trace: nwrddc01.gnilink.net 1236070650 70.104.79.44 (Tue, 03 Mar 2009 03:57:30 EST) NNTP-Posting-Date: Tue, 03 Mar 2009 03:57:30 EST Xref: g2news2.google.com comp.lang.ada:4855 X-Original-Bytes: 1652 Date: 2009-03-03T08:57:30+00:00 List-Id: On Tue, 17 Feb 2009 14:01:14 +0100, Georg Bauhaus wrote: > We can write the same program in Ada, of course. :-) > Only, the Ada version is likely written without > resorting to the C's idiomatic > "statement-used-as-expression-in-the-loop-conditional". > Nit: not statement. In C assignment is an expression not a statement, so you can use it in a condition. But not anything that C considers a statement. (Even the 'new' C++ and C99 option of putting a declaration in (the head of) a for-statement is specifically a declaration, which is not a statement in C99.)