bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] How awk keys are ordered?


From: Peng Yu
Subject: Re: [bug-gawk] How awk keys are ordered?
Date: Wed, 21 Dec 2016 15:12:19 -0600

> Quite right. Gawk has additional optimizations for arrays
> indexed only by integers.  Running the program with another
> awk will definitely give different results.

I only care about gawk for now. In gawk, if the keys are numeric, does
it guarantee to be ordered by default (at least with the current
version of gawk).

How does gawk treat numbers and strings differently? What if strings
are numbers?

> And please note that the awk spec says that array indexes are handled as
> strings. So [i] and ["" i] refer to the same element.

I don't find where it says so in the gawk doc. Would you please let me know?

-- 
Regards,
Peng



reply via email to

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