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,15206109532cee9d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-06 10:02:18 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Detecting NaN Date: 06 Aug 2001 12:51:04 -0400 Organization: NASA Goddard Space Flight Center Message-ID: References: <9km8fm$d3r$1@nh.pace.co.uk> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 997116670 25438 128.183.220.71 (6 Aug 2001 16:51:10 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 6 Aug 2001 16:51:10 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:11398 Date: 2001-08-06T16:51:10+00:00 List-Id: "Marin David Condic" writes: > Suppose I'm generating a Not A Number (NaN) in a floating point computation. > If I'm using Gnat 3.13p, I'm pretty sure the way to get that detected is > with the "-gnato" switch. (I have not tested it yet - someone else's code - > but I'm pretty sure the problem is showing up because the code in question > is not compiled with overflow checks on.) However, it might be advantageous > to leave off the overflow checks and just force a check on the result. I > seem to recall that there was an attribute or pragma or some other Ada > language mechanism that would force a data item to be evaluated for > correctness - say, after reading a record from a file. You might want to > force an evaluationt that the language rules don't require until the record > is actually accessed. I think that was the context in which I remember the > mechanism being employed. Can anybody refresh my memory as to how that was > done? Thanks. 'Valid. > > > MDC -- Marin David Condic Senior Software Engineer Pace Micro > Technology Americas www.pacemicro.com Enabling the digital > revolution Web: http://www.mcondic.com/ > > > -- -- Stephe