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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn?= Persson Subject: Re: Translating an embedded C algorithm Newsgroups: comp.lang.ada References: <1168871816.263502.212100@11g2000cwr.googlegroups.com> <45ace573$1_3@news.bluewin.ch> <68qioe.mes.ln@hunter.axlog.fr> <1168963927.396654.169380@s34g2000cwa.googlegroups.com> <11e7vht8gdl0z$.2dypcyr85i3w.dlg@40tude.net> <147rcq0tjavdf.lzroutxxh59k$.dlg@40tude.net> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Message-ID: <9Q9sh.29705$E02.12104@newsb.telia.net> Date: Fri, 19 Jan 2007 20:26:45 GMT NNTP-Posting-Host: 83.250.96.174 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1169238405 83.250.96.174 (Fri, 19 Jan 2007 21:26:45 CET) NNTP-Posting-Date: Fri, 19 Jan 2007 21:26:45 CET Organization: Telia Internet Xref: g2news2.google.com comp.lang.ada:8346 Date: 2007-01-19T20:26:45+00:00 List-Id: Cesar Rabak wrote: > Bj�rn Persson escreveu: >> Cesar Rabak wrote: >> >>> C has case statements as well. >> >> The switch statement is utterly broken (so to speak). I prefer not to use >> it. I suppose my code contains slightly more "==" because of this. >> > The problem with people prefering or not certain things is exactly this! > You are on the 'not use it [C case statements], and a lot of developers > in 'not use Ada at all'... Huh? Dmitry guessed that Ada programmers' use of case statements contributes to comparisons against constants with the equality operator being less frequent in Ada code than in C code. You objected, saying "C has case statements as well." You thereby implied that the use of case statements cannot contribute to any such difference in frequency. I provided a counter example, explaining how I don't use the switch statement even though it exists, and how this causes a my C code to contain more equality operators. Now my not using switch statements is somehow a problem to you? Why is that, and what does it have to do with how frequently equality operators are used? Do you perchance try to use as many different things as you possibly can, just so that you'll be able to say that there is nothing in the word that you prefer not to use? -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu