bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] On uninitialized variables


From: arnold
Subject: Re: [bug-gawk] On uninitialized variables
Date: Mon, 13 May 2019 13:11:03 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Hi.

M <address@hidden> wrote:

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

Thanks for the note. Looking at the section as a whole, I think it
would be distracting to try to introduce information about initialization
to the empty string.  Sometimes it's better not to be fully complete.

So, I appreciate your making the suggestion, but I think it better to
leave that section alone.

Thanks!

Arnold



reply via email to

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