Debian Codegraph @

test/mdim1.awk

raw
1 BEGIN {
2 print "typeof(x[0]) is", typeof(x[0])
3 x[1] = x[0]
4 print "typeof(x[1]) is", typeof(x[1])
5 x[0][1] = "xx"
6 print "typeof(x[0]) is", typeof(x[0])
7 print "typeof(x[0][1]) is", typeof(x[0][1])
8 print "typeof(y) is", typeof(y)
9 z = y
10 print "typeof(y) is", typeof(y)
11 print "typeof(z) is", typeof(z)
12
13 x[1][0] = "xx" # this will fatal
14 print x[1][0]
15 }