Seth Woolley's Man Viewer

global(n) - global, global - Access global variables - man n global

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

global(n)                    Tcl Built-In Commands                   global(n)



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(1,8) the global
       namespace.  For the duration of the current procedure (and  only  while
       executing  in(1,8)  the current procedure), any reference to any of the var-
       names will refer to the global variable by the same name.



SEE ALSO
       namespace(n), upvar(n), variable(n)


KEYWORDS
       global, namespace, procedure, variable



Tcl                                                                  global(n)

References for this manual (incoming links)