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 11:03:48 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail Message-ID: <3FABEC8A.8020609@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: New limited range type? References: <1068220677.950551@master.nyc.kbcfp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 07 Nov 2003 19:03:48 GMT NNTP-Posting-Host: 165.247.70.209 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.atl.earthlink.net 1068231828 165.247.70.209 (Fri, 07 Nov 2003 11:03:48 PST) NNTP-Posting-Date: Fri, 07 Nov 2003 11:03:48 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:2223 Date: 2003-11-07T19:03:48+00:00 List-Id: But that's just a matter of order of evaluation, which is well defined. You've got Left-To-Right without parens which implies one result and with parens, you have another result. Other equations have evaluation order dependencies - why not here? More important is this: At present, what does it do with respect to raising an exception? With fixed precision on the RHS, it would raise an exception one way, but not another. Couldn't it saturate instead? With infinite precision on the RHS, what happens when you assign it to the LHS? Overflow/Exception? Why can't it saturate there? The saturation is primarily a benefit when it gets assigned to the LHS - not on the intermediate results. So long as you deal with that situation, you're all right. MDC Hyman Rosen wrote: > > This is generally called saturating arithmetic, and you are > far from the first to request it. I belive the difficulty > lies in assigning meaning to expressions and intermediate > results. What if you say A := B + C - D, with values such > that (B + C) saturates but B + (C - D) does not? > -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m o d c @ a m o g c n i c . r "So if I understand 'The Matrix Reloaded' correctly, the Matrix is basically a Microsoft operating system - it runs for a while and then crashes and reboots. By design, no less. Neo is just a memory leak that's too hard to fix, so they left him in... The users don't complain because they're packed in slush and kept sedated" -- Marin D. Condic ======================================================================