[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] On uninitialized variables
From: |
M |
Subject: |
[bug-gawk] On uninitialized variables |
Date: |
Sun, 12 May 2019 19:03:08 +0300 |
Hello! When rereading the manual (v5.0.0), I noticed an inexact statement in
Chapter 1:
1.5 A More Complex Example
"(This works because awk variables are automatically initialized to zero.)"
It's true only in a numeric context.
When used as strings, uninitialized variables are automatically initialized to
an empty string.
Although this peculiarity is emphasised throughout the rest of the manual,
I think it would be useful to mention about it in the introduction chapter too
(especially for novices).
- [bug-gawk] On uninitialized variables,
M <=
- Re: [bug-gawk] On uninitialized variables, arnold, 2019/05/13
- Re: [bug-gawk] On uninitialized variables, M, 2019/05/13
- Re: [bug-gawk] On uninitialized variables, M, 2019/05/13
- Re: [bug-gawk] On uninitialized variables, M, 2019/05/14
- Re: [bug-gawk] On uninitialized variables, arnold, 2019/05/14
- Re: [bug-gawk] On uninitialized variables, M, 2019/05/14
- Re: [bug-gawk] On uninitialized variables, arnold, 2019/05/14
- Re: [bug-gawk] On uninitialized variables, M, 2019/05/21
Re: [bug-gawk] On uninitialized variables, Manuel Collado, 2019/05/14