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,f822ae7b0f7433c1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Translating an embedded C algorithm Date: Tue, 16 Jan 2007 16:16:17 +0100 Organization: Adalog Message-ID: <68qioe.mes.ln@hunter.axlog.fr> References: <1168871816.263502.212100@11g2000cwr.googlegroups.com> <45ace573$1_3@news.bluewin.ch> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1168963266 6423 195.25.228.57 (16 Jan 2007 16:01:06 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Tue, 16 Jan 2007 16:01:06 +0000 (UTC) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: <45ace573$1_3@news.bluewin.ch> Xref: g2news2.google.com comp.lang.ada:8180 Date: 2007-01-16T16:16:17+01:00 List-Id: Gautier a �crit : > Vo, Anh (US SSA) wrote: > > A micro-detail: the translation is an occasion to get rid of plenty of > *%@�!* useless parentheses: > > < if (Adc_Count < MINIMUM_ADC_COUNT) then > [...] Of course, this is another thing that AdaControl can check. Never post something without passing it to AdaControl :-) :-) :-) > A question: I see all the time things like "if (.. < ..)" in C - are the > parentheses required there ? Yes, they are - because C has no "then" keyword. There must be something to tell the compiler where the expression ends... -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr