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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Translating an embedded C algorithm Date: Thu, 18 Jan 2007 11:55:12 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1168871816.263502.212100@11g2000cwr.googlegroups.com> <45acc0c3$0$22514$39db0f71@news.song.fi> <45af9c60$0$22524$39db0f71@news.song.fi> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1169139312 9633 192.74.137.71 (18 Jan 2007 16:55:12 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 18 Jan 2007 16:55:12 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:A7HnPq33felxxqcqKeQJJSPe9VU= Xref: g2news2.google.com comp.lang.ada:8266 Date: 2007-01-18T11:55:12-05:00 List-Id: Niklas Holsti writes: I didn't read your whole post carefully. It looks good, but: > type Celsius_T is delta 0.1 digits 5 range -40.0 .. 120.0; I think you might want: for Celsius_T'Small use Celsius_T'Delta; here. Also, I think it would be overkill to put both ways of dealing with invalid results in an example in a book. I'd suggest just using the exception method, and ignore the rather complex idea of variant records. - Bob