[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading NaNs

This page is part of the web mail archives of SRFI 77 from before July 7th, 2015. The new archives for SRFI 77 contain all messages, not just those from before July 7th, 2015.



Thomas Bushnell BSG <tb@xxxxxxxxxx> writes:

> You could turn on a special "track source on NaNs" feature, which
> squirrels away, say, a complete stack record (or something less
> perhaps, depending on what you ask for), and then every NaN generated
> now gets tagged with a *very* nice handle for debugging.

This can be done by changing the implementation of arithmetic to
produce those special values with traces *instead* of regular NaNs.
There is no need to change the semantics of IEEE NaNs.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@xxxxxxxxxx
    ^^     http://qrnik.knm.org.pl/~qrczak/