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,FREEMAIL_FROM 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!news1.google.com!news.germany.com!aioe.org!not-for-mail From: Cesar Rabak Newsgroups: comp.lang.ada Subject: Re: Translating an embedded C algorithm Date: Thu, 18 Jan 2007 20:25:08 -0200 Organization: Aioe.org NNTP Server Message-ID: References: <1168871816.263502.212100@11g2000cwr.googlegroups.com> <45acc0c3$0$22514$39db0f71@news.song.fi> <45af9c60$0$22524$39db0f71@news.song.fi> <87y7o01e4y.fsf@ludovic-brenta.org> NNTP-Posting-Host: zEJK12x7djBBvRARhduGQA.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org In-Reply-To: User-Agent: Thunderbird 1.5.0.8 (X11/20061109) Xref: g2news2.google.com comp.lang.ada:8284 Date: 2007-01-18T20:25:08-02:00 List-Id: Ludovic Brenta escreveu: > Niklas Holsti writes: > [...] > > Hi Niklas, > > I think your program is excellent. You are the first who used a fixed > point real type and never to return an "invalid" temperature; both > were the Right Thing to Do, IMHO. Would you like to work in avionics? > :) > > Given the very high quality of your program, I'll offer only > nit-picking criticisms :) [snipped] Maintaining the kudos, a nit-pick�: > > private package Thermometer.Some_Particular_Kind_Of_Sensor is > type Count_T is range 0 .. 1024; The ADC is ten bit, so it should be: "type Count_T is range 0 .. 1023;" -- 2#11111_11111#