Mail Archives: djgpp-workers/1999/01/19/12:42:34
> I see nothing wrong with printing an item of poorly formed bits as NaN.
> In the final analysis, that's what it is, isn't it? When a print loop
> inadvertently wades through ASCII or binary data, what's to be done?
> In my view, *some* analysis must be done by the person presumably in
> charge.
Invalid strings are printed as "<null>". Can't invalid FPs be printed
as "<invalid>" ? I mean, we still have to do the work to properly
support this, but it's better than crashing.
I also suspect that there are more NaN patterns than just the one that
is "the" NaN pattern. I wouldn't have a problem with "NaN" being
printed for *all* invalid patterns (except known infinities and
printable denormals, of course).
- Raw text -