global
Section: Tcl Built-In Commands (n)
Updated:
Index
Return to Main Contents
NAME
global - Access global variables
SYNOPSIS
global varname ?varname ...?
DESCRIPTION
This command is ignored unless a Tcl procedure is being interpreted.
If so then it declares the given varname's to be global variables
rather than local ones.
Global variables are variables in the global namespace.
For the duration of the current procedure
(and only while executing in the current procedure),
any reference to any of the varnames
will refer to the global variable by the same name.
SEE ALSO
namespace(n), variable(n)
KEYWORDS
global, namespace, procedure, variable
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- KEYWORDS
-
This document was created by
man2html,
using the manual pages.
Time: 04:51:16 GMT, September 16, 2024