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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!think!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!gryphon!pnet02!bagpiper From: bagpiper@pnet02.gryphon.com (Michael Hunter) Newsgroups: comp.lang.ada Subject: Re: Non-static constant propagation in Message-ID: <24518@gryphon.COM> Date: 10 Jan 90 04:00:20 GMT Sender: root@gryphon.COM Organization: People-Net [pnet02], Redondo Beach, CA. List-Id: firth@sei.cmu.edu (Robert Firth) writes: >In article <20600032@inmet> stt@inmet.inmet.com writes: > >>In ARM 4.10:4, it states: >> . . . Furthermore, if a universal expression is a static expression, >>then the evaluation must be exact. >> >>Let's hope they don't try to define "SQRT" on universal reals ! ;-* > >The sentence quoted was perpetrated by one of the Neoplatonists on >the language design team. The point of the joke, of course, is that >in Ada all 'universal' expressions yield only rational results, and >so may indeed be computed exactly. I'm missing something here....no matter how hard to try to compute the square root of 2....you ain't gonna get it exactly...I don't care if you are doing your arithmatic with rational immediate results!! The sqare root of 2 doesn't exist in the rationals!!!! (go check with your college abstract algebra book or if you want overkill check out galois theory!) Now you can computer the root of 2 to maximum percision of the hardware percisely...that is a different matter...! Michael Mike Hunter - Box's and CPU's from HELL: iapx80[012]86, PR1ME 50 Series, 1750a UUCP: {ames!elroy, }!gryphon!pnet02!bagpiper INET: bagpiper@pnet02.gryphon.com