ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



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 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), upvar(n), variable(n)


KEYWORDS
       global, namespace, procedure, variable



Tcl                                                                                                global(n)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.