[Top][All Lists]

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

Re: [bug-gawk] Access variables not conforming to the variable naming co

From: Joep van Delft
Subject: Re: [bug-gawk] Access variables not conforming to the variable naming convention?
Date: Mon, 03 Dec 2018 20:51:27 +0100
User-agent: XS4ALL Webmail

fwiw, ngetopt.awk[1] relies on the current SYMTAB behavior.

[1]: https://github.com/joepvd/ngetopt.awk

address@hidden schreef op 2018-12-03 15:10:
Are you disabling that ability to create the variable by poking it into SYMTAB

**** THERE IS NO SUCH CAPABILITY ****. The fact that you reference 'age'
in the program is what puts it into SYMTAB.

Your program creates unrelated (non-variable) elements in SYMTAB "name"
and "weight" that are no different from any other array elements.

The internal details of that a variable really gets assigned when used
without the SYMTAB array does not really matter from a user's perspective.
Either a user references the variable directly, and it works, or doesn't
reference a variable defined through SYMTAB, and it also works.

It is exactly this confusion that I'm trying to avoid.

I do not mind getting weird errors in unexpected places when not adhering to
variable name conventions in this indirect way.


reply via email to

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