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-7-bit Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: Jeffrey Carter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Translating an embedded C algorithm References: <1168871816.263502.212100@11g2000cwr.googlegroups.com> <45acc0c3$0$22514$39db0f71@news.song.fi> <45af9c60$0$22524$39db0f71@news.song.fi> In-Reply-To: <45af9c60$0$22524$39db0f71@news.song.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1169145781 12.201.97.213 (Thu, 18 Jan 2007 18:43:01 GMT) NNTP-Posting-Date: Thu, 18 Jan 2007 18:43:01 GMT Organization: AT&T ASP.att.net Date: Thu, 18 Jan 2007 18:43:01 GMT Xref: g2news2.google.com comp.lang.ada:8273 Date: 2007-01-18T18:43:01+00:00 List-Id: Niklas Holsti wrote: > package ADC is > > type Count_T is range 0 .. 1023; Why not mod 2 ** 10? Is for Count_T'Size use 10; appropriate here? Seems to me these are only used to produce temperatures, and so should be hidden from the rest of the application. > Saturation : Boolean := True; Control coupling through global variables. Terrible SW engineering. What happens when one task changes the value when another is part way through the function?