[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Special Comparisons: nan == nan
From: |
Andrew J. Schorr |
Subject: |
Re: [bug-gawk] Special Comparisons: nan == nan |
Date: |
Mon, 7 Aug 2017 20:24:36 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi Dan,
On Mon, Aug 07, 2017 at 05:10:08PM -0700, Daniel Pettet wrote:
> I don't know which version I saw this or how complete the treatment of NaNs
> was. You could try back before version 4.0.0.
As far back as gawk-1.01, the test returns true if you are comparing a variable
to itself, based on source code inspection. So I doubt this ever worked the way
you'd like for any version of gawk.
> The distinction between
> comparing two NaNs and comparing a NaN with itself is interesting.
I imagine this may be the case you were thinking of when you said
it used to work differently. This changed in 4.1.
Regards,
Andy
Re: [bug-gawk] Special Comparisons: uninitialized array index, Andrew J. Schorr, 2017/08/07
- Re: [bug-gawk] Special Comparisons: uninitialized array index, Andrew J. Schorr, 2017/08/07
- Re: [bug-gawk] Special Comparisons: uninitialized array index, Andrew J. Schorr, 2017/08/07
- Re: [bug-gawk] Special Comparisons: uninitialized array index, arnold, 2017/08/07
- Re: [bug-gawk] Special Comparisons: uninitialized array index, Andrew J. Schorr, 2017/08/07
- Re: [bug-gawk] Special Comparisons: uninitialized array index, arnold, 2017/08/08
- Re: [bug-gawk] Special Comparisons: uninitialized array index, arnold, 2017/08/10