Initial release
This commit is contained in:
28
hlp/en/tcl/global.htm
Normal file
28
hlp/en/tcl/global.htm
Normal file
@@ -0,0 +1,28 @@
|
||||
<HTML><HEAD><TITLE>Built-In Commands - global manual page</TITLE></HEAD><BODY>
|
||||
<H3><A NAME="M2">NAME</A></H3>
|
||||
global - Access global variables
|
||||
<H3><A NAME="M3">SYNOPSIS</A></H3>
|
||||
<B>global </B><I>varname </I>?<I>varname ...</I>?<BR>
|
||||
<H3><A NAME="M4">DESCRIPTION</A></H3>
|
||||
This command is ignored unless a Tcl procedure is being interpreted.
|
||||
If so then it declares the given <I>varname</I>'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 <I>varname</I>s
|
||||
will refer to the global variable by the same name.
|
||||
<P>
|
||||
Please note that this is done by creating local variables that are
|
||||
linked to the global variables, and therefore that these variables
|
||||
will be listed by <B><A HREF="../TkCmd/info.htm">info locals</A></B> like all other local variables.
|
||||
|
||||
<H3><A NAME="M5">SEE ALSO</A></H3>
|
||||
<B><A HREF="../TkCmd/namespace.htm">namespace</A></B>, <B><A HREF="../TkCmd/upvar.htm">upvar</A></B>, <B><A HREF="../TkCmd/variable.htm">variable</A></B>
|
||||
<H3><A NAME="M6">KEYWORDS</A></H3>
|
||||
<A href="../Keywords/G.htm#global">global</A>, <A href="../Keywords/N.htm#namespace">namespace</A>, <A href="../Keywords/P.htm#procedure">procedure</A>, <A href="../Keywords/V.htm#variable">variable</A>
|
||||
<HR><PRE>
|
||||
<A HREF="../copyright.htm">Copyright</A> © 1993 The Regents of the University of California.
|
||||
<A HREF="../copyright.htm">Copyright</A> © 1994-1997 Sun Microsystems, Inc.
|
||||
<A HREF="../copyright.htm">Copyright</A> © 1995-1997 Roger E. Critchlow Jr.</PRE>
|
||||
</BODY></HTML>
|
Reference in New Issue
Block a user