Mail Archives: djgpp-workers/1999/01/19/15:24:29
Subj: Re: Bug when printing long doubles
To: dj AT delorie DOT com
Dear DJ Delorie,
On 01-19-99 at 13:23:27 EST you wrote:
>
> > 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>".
Yes, but what I had in mind was a renegade print loop that thought it
was looking at binary long double data.
> 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).
I concur.
K.B. Williams
- Raw text -