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: Eli Zaretskii
Subject: Re: [bug-gawk] Overflow to Infinity
Date: Mon, 16 Jul 2018 17:32:45 +0300

> From: address@hidden
> Date: Mon, 16 Jul 2018 00:51:06 -0600
> Cc: address@hidden, address@hidden,
>         address@hidden
> 
> Compile the attached gen-float-table.c program and save its output
> to hw-out.txt.  Run the attached gen-table.awk program with the
> latest *released* gawk, and save its output to gawk-out.txt.
> 
> Compare the two .txt files side by side in a diff viewer, such as
> meld on Linux.  Not only is gawk's output different from C's but it
> is also nonsensical in several cases.  This is a direct consequence
> of using the array index ordering routine for scalar comparisons.

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.

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.



reply via email to

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