[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: documentation inconsistency
From: |
arnold |
Subject: |
Re: documentation inconsistency |
Date: |
Wed, 06 Oct 2021 01:57:55 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hello All.
> > # ... "It isn't possible to set more than one variable in the
> > # initialization part without using a multiple assignment statement
> > # such as 'x = y = 0' statement."
The intent here --- obviously it was too subtle --- was to indicate that
the common C idiom using the comma operator isn't available in awk:
for (i = 0, j = 1; ...; ...) ... // This is C, not awk
As both of you pointed out, there are workarounds for this, although
they are all somewhat obtuse (even if clever, like the use of addition).
I will revise the text a little bit.
Thanks,
Arnold
P.S. And no, I'm not going to add the comma operator to gawk. It
would just make the grammar even messier and make gawk even more
non-standard than it is now.