bug-gawk
[Top][All Lists]
Advanced

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

Re: typeof() creates elements in an array


From: arnold
Subject: Re: typeof() creates elements in an array
Date: Thu, 30 Sep 2021 01:09:11 -0600
User-agent: Heirloom mailx 12.5 7/5/10

arnold@skeeve.com wrote:

> > array lookup for a non-existent value looks like it has to create a new
> > entry with a NODE value, and so I guess that has to have an explicit type
> > at that moment. I don't think we have a notion of an untyped Node_val.
>
> We have Node_var_new, which is pretty close.
>
> I will look at this when I get a few minutes.

I looked at this. It's possible to get the simple case of

        print(typeof(x[0])
        x[0][1] = "foo"

to work, but the test suite then breaks pretty badly.  I don't think
it's worth the effort to make this really work. I will try to update
the manual and clarify things some more.

Thanks,

Arnold



reply via email to

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