Previous: Namespace And Features, Up: Namespaces [Contents][Index]
awk
provides a single namespace for all global
identifiers (scalars, arrays, and functions). This is limiting when
one wants to develop libraries of reusable functions or function suites.
gawk
provides multiple namespaces by using qualified names:
names consisting of a namespace name, a double colon, ::
, and a
component name. Namespace names might still possibly conflict, but this
is true of any language providing namespaces, modules, or packages.
awk
. The rules for namespace and
component names are provided in Namespace and Component Naming Rules. The rules are
designed in such a way as to make namespace-aware code continue to
look and work naturally while still providing the necessary power and
flexibility.
gawk
have been extended as necessary to integrate
namespaces smoothly with their operation. This applies most notably to
the profiler / pretty-printer (see section Profiling Your awk
Programs) and to the extension
facility (see section Writing Extensions for gawk
).
gawk
.