/
niceSOFT
/
gawk
Обзор
Документация
Войти
/
niceSOFT
/
gawk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/arraytype.awk
35 строк
552 B
Andrew J. Schorr
Implement optional second array arg to type of returning info on variable internals.
09 янв 2019, 18:51
09 янв 2019, 18:51
56f4a41
Код
Авторство
О чём код?
BEGIN { # N.B. This relies upon the undocumented 2nd argument to typeof x[0] = 0 print typeof(x, a) print a["array_type"] # make sure it resets delete x[0] print typeof(x, a) print a["array_type"] x["fubar"] = 0 print typeof(x, a) print a["array_type"] delete x["fubar"] print typeof(x, a) print a["array_type"] x[-2] = 0 print typeof(x, a) print a["array_type"] delete x[-2] print typeof(x, a) print a["array_type"] x[2] = 0 print typeof(x, a) print a["array_type"] delete x print typeof(x, a) print a["array_type"] }