bug-gawk
[Top][All Lists]
Advanced

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

Re: built-in functions are missed in non-awk namespaces


From: arnold
Subject: Re: built-in functions are missed in non-awk namespaces
Date: Tue, 30 Jul 2024 10:43:09 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Denis Shirokov <cosmogen@gmail.com> wrote:

>   One more question - I don’t see any information about this in the
> documentation:
> What is the initial namespace inside a file when it is @include - the
> current one (the one from which the @include was made) or always awk?

It is documented, see
https://www.gnu.org/software/gawk/manual/gawk.html#Changing-The-Namespace.

> Right now, I see that it is always awk namespace at the beginin of fuke
> included. Is this correct?

Yes.

>  Perhaps it would be more convenient if the namespace remained current -
> the one from which the @include itself was made.

This has it's advantages and disadvantages. The main disadvantage is
that making this change would break existing programs.  It might have
been better to do things the other way, but it's too late now. :-(

Thanks,

Arnold



reply via email to

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