[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: |
Fri, 01 Oct 2021 02:42:24 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
"Andrew J. Schorr" <aschorr@telemetry-investments.com> wrote:
> > Which language in the manual, please?
>
> I was referring to the language he originally cited:
>
> " Normally, passing a variable that has never been used to a built-in
> function causes it to become a scalar variable (unassigned). However,
> 'isarray()' and 'typeof()' are different; they do not change their
> arguments from untyped to unassigned."
I have added some additional language to the manual that should clarify
things some.
Andy and I are currently exploring if something like
BEGIN {
print typeof(x[0])
x[0][1] = "foo"
print x[0][1]
}
can be made to work "reasonably". The jury is still out.
Thanks,
Arnold
- Re: typeof() creates elements in an array,
arnold <=