[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: typeof() fatal error
From: |
Denis Shirokov |
Subject: |
Re: typeof() fatal error |
Date: |
Mon, 6 Jan 2020 07:18:46 +0200 |
please note about more simple example:
BEGIN{
test( someidentifier ) }
func test( a ) {
print typeof( a )
a
print typeof( a ) }
kind Regards
Denis Shirokov
2020-01-06 6:58 GMT+02:00, Denis Shirokov <address@hidden>:
> hello
>
> found an issue with typeof() function:
>
> BEGIN{
>
> test( someidentifier ) }
>
>
> func test( p ) {
>
> test0( p )
>
> p
>
> test0( p ) }
>
> func test0( p ) {
>
> print "TYPEOF: " typeof( p ) }
>
>
> output:
>
>
> TYPEOF: untyped
> gawk: ./bug_typeof.gwk:17: fatal: typeof: unknown argument type
> `Node_array_ref'
>
> gawk version: 4.2.1
>
> source file bug_typeof.gwk is attached
>