[Top][All Lists]

[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).

reply via email to

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