Noted that reference delimiters not permitted in variable names.
Clarified that attempts to nest variable references causes an error.
1 parent 19df81f commit 5976b4a4b9b3ae8382ac29218c18476748b5bd88
@tundra tundra authored on 8 Apr 2004
Showing 1 changed file
View
11
tconfpy.3
a leading period in a variable name to be a "namespace escape".
This is discussed in a later section on lexical namespaces.
 
.IP \(bu 4
Variable names cannot contain the \'[\' or \']\' characters. These
are reserved symbols used to indicate a variable
.B reference.
 
.IP \(bu 4
You cannot have a variable whose name is the empty string. This is
illegal:
 
.nf
FOO = Goodness
BAR = Me
Oh[FOO][BAR] = Goodness Gracious Me!
 
# But This Does NOT Do What You Might Think
 
[FOO[BAR]] = Something Or Other # Avoid nested constructs like this!
# But This Kind Of Nesting Attempt Causes An Error
 
[FOO[BAR]] = Something Or Other
.fi
 
.SS Lexical Namespaces