[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unexpected result while constructing strings
From: |
Andreas Schwab |
Subject: |
Re: Unexpected result while constructing strings |
Date: |
Sat, 30 Oct 2010 17:04:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hermann Peifer <address@hidden> writes:
> Thanks for the pointer to the FAQ. Any idea about this one:
>
> $ gawk-stable/gawk 'BEGIN{ c++ ; print FS ++c }'
> 01
This is parsed as `(FS++) c', where (FS++) is 0 and c is 1.
> $ gawk-stable/gawk 'BEGIN{ c++ ; print (FS) ++c }'
> 2
Here " " (FS) is concatented with 2 (++c).
Andreas.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- Re: Unexpected result while constructing strings, (continued)
- Re: Unexpected result while constructing strings, Davide Brini, 2010/10/30
- Message not available
- Re: Unexpected result while constructing strings, Hermann Peifer, 2010/10/30
- Re: Unexpected result while constructing strings, Davide Brini, 2010/10/30
- Re: Unexpected result while constructing strings, Hermann Peifer, 2010/10/30
- Re: Unexpected result while constructing strings, Davide Brini, 2010/10/30
- Re: Unexpected result while constructing strings, Hermann Peifer, 2010/10/30
- Re: Unexpected result while constructing strings, Andreas Schwab, 2010/10/30
- Re: Unexpected result while constructing strings, Andreas Schwab, 2010/10/30
- Re: Unexpected result while constructing strings, Davide Brini, 2010/10/30
- Message not available
- Re: Unexpected result while constructing strings, Aharon Robbins, 2010/10/30
- Re: Unexpected result while constructing strings,
Andreas Schwab <=
Message not available