Subject: Re: scanf misses NAN and INF (patch to review)
To: Bill Stouder-Studenmund <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 04/04/2007 13:55:27
On Apr 4, 10:45am, email@example.com (Bill Stouder-Studenmund) wrote:
-- Subject: Re: scanf misses NAN and INF (patch to review)
| > >Can you give me an example where the patch would not be appropriate?
| > There are machines that don't have NaN or Inf like the vax. In that
| > case the input would be "inf" or "nan" and g would print a real number.
| > The patch is fine for machines with "inf" and "nan". I am not sure
| > what the best way is to approach this for machines that don't have
| > "inf" or "nan". Perhaps the code should just not match "inf" and "nan"
| > for machines that don't have them and behave like it does now.
| Well, what do we do now for improperly-formatted numbers? Wouldn't the
| same thing be appropriate?
Right, I think it should not match anything.