[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bugs in passing uninitialized array to a function
From: |
Micah Cowan |
Subject: |
Re: bugs in passing uninitialized array to a function |
Date: |
Sun, 30 Aug 2009 11:41:34 -0700 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Micah Cowan wrote:
> Greg Johnson wrote:
>> I am using gawk version 3.1.7.
>>
>> The attached programs illustrate what look to me like two bugs
>> in the handling of uninitialized variables to functions that treat
>> them as arrays.
>
> Confirmed. I also note that this behavior is not present in 3.1.6 (at
> least, not Ubuntu's 3.1.6-0ubuntu1 package).
I forgot to point out, though, that these snippets still wouldn't work
as seems to be expected: length() gives the length of the string value,
not number of elements in an array.
--
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/