bug-gawk
[Top][All Lists]
Advanced

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

Re: delete of nested array is in consistent


From: Neil R. Ormos
Subject: Re: delete of nested array is in consistent
Date: Thu, 16 Apr 2020 19:32:38 -0500 (CDT)

david kerns wrote:
> Peng Yu <address@hidden> wrote:

>> See below. I'd expect the second one should
>> also print array. Is it a bug?

>> $ awk -e 'BEGIN { delete a[""]; print typeof(a) }'
>> array
>> $ awk -e 'BEGIN { delete a[1][""]; print typeof(a[1]) }'
>> unassigned

> pretty sure gawk still doesn't have "true"
> multi-dimensional arrays...

Regardless of whether gawk is deemed to have
"'true' multi-dimensional arrays", the OP's code
appears to be intended to employ the feature
described here:
 
  <http://www.gnu.org/software/gawk/manual/html_node/Arrays-of-Arrays.html>



reply via email to

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