manpagez: man pages & more
info gawk
Home | html | info | man

File: gawk.info,  Node: Default Namespace,  Next: Changing The Namespace,  Prev: Qualified Names,  Up: Namespaces

15.3 The Default Namespace
==========================

The default namespace, not surprisingly, is 'awk'.  All of the
predefined 'awk' and 'gawk' variables are in this namespace, and thus
have qualified names like 'awk::ARGC', 'awk::NF', and so on.

   Furthermore, even when you have changed the namespace for your
current source file (*note Changing The Namespace::), 'gawk' forces
unqualified identifiers whose names are all uppercase letters to be in
the 'awk' namespace.  This makes it possible for you to easily reference
'gawk''s global variables from different namespaces.  It also keeps your
code looking natural.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.