bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Another typeof() issue


From: Hermann Peifer
Subject: [bug-gawk] Another typeof() issue
Date: Mon, 22 Jun 2015 19:33:53 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Hi again,

IIRC, another simple AWK truth is that any reference to a non-existing array element creates this element as a scalar. So I am wondering if in the below example typeof(a[1]) is really: untyped ?

Hermann

$ awk 'BEGIN{ print typeof(a[1]); a[1][2]}'
untyped
awk: cmd. line:1: fatal: attempt to use scalar `a["1"]' as an array



reply via email to

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