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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1de1981df403322c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-07 14:41:08 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!btnet-peer1!btnet-peer0!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: New limited range type? Date: Fri, 7 Nov 2003 22:40:47 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1068220677.950551@master.nyc.kbcfp.com> <1068224385.790621@master.nyc.kbcfp.com> NNTP-Posting-Host: host81-129-48-51.in-addr.btopenworld.com X-Trace: sparta.btinternet.com 1068244847 29245 81.129.48.51 (7 Nov 2003 22:40:47 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Fri, 7 Nov 2003 22:40:47 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:2238 Date: 2003-11-07T22:40:47+00:00 List-Id: "Larry Hazel" wrote in message news:l%Sqb.1767$X5.22782@eagle.america.net... > > You could argue that the case "A := B + C - D," for these 'limited > > range' types _can_only_ be equivilent to "A := (B + C) - D;". > > > An analog computer implements saturating arithmetic. Oh my God, how > long has it been since anyone saw an analog computer. The sum B + C - D > would be computed all at once and would only saturate if the final > result was out of range. So, I think the expression should be evaluated > in a base type with saturation applied to the result. or, how about lets not and support the 99.99999999999999999999999etc% digital world only! :-) Is there an Ada (any variant) compiler for an analogue computer?..