bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Overflow to Infinity


From: arnold
Subject: Re: [bug-gawk] Overflow to Infinity
Date: Mon, 16 Jul 2018 12:17:50 -0600
User-agent: Heirloom mailx 12.4 7/29/08

Eli Zaretskii <address@hidden> wrote:

> Which Gawk results are nonsensical?  Maybe I missed some, but I looked
> at most of them, and they do make sense, more than the C results,
> actually.

nan >  2 -> true
nan >= 2 -> true

-nan >  2 -> true
-nan >= 2 -> true

nan >  inf -> true
nan >= inf -> true

-nan >  inf -> true
-nan >= inf -> true

Possibly others.

> Anyway, if there are nonsensical results, we should try fixing them so
> that they do make sense.  But mimicking C is not necessarily the way
> to do it.

Do you wish to review the code and submit a suggested patch?

The comparison operators are processed in interpret.h, and they
call cmp_scalars() which is in eval.c.

Thanks,

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]