global - Online Linux Manual PageSection : n
Updated :
Source : Tcl
Note : Tcl Built-In Commands
NAMEglobal − Access global variables
SYNOPSISglobal ?varname ...?
.\}
DESCRIPTIONThis command has no effect unless executed in the context of a proc body. If the global command is executed in the context of a proc body, it creates local variables linked to the corresponding global variables (though these linked variables, like those created by upvar, are not included in the list returned by info locals). If varname contains namespace qualifiers, the local variable's name is the unqualified name of the global variable, as determined by the namespace tail command. varname is always treated as the name of a variable, not an array element. An error is returned if the name looks like an array element, such as a(b).
EXAMPLESThis procedure sets the namespace variable ::a::x proc reset {} {
global a::x
set x 0
}
This procedure accumulates the strings passed to it in a global buffer, separated by newlines. It is useful for situations when you want to build a message piece-by-piece (as if with puts) but send that full message in a single piece (e.g. over a connection opened with socket or as part of a counted HTTP response). proc accum {string} {
global accumulator
append accumulator $string \n
}
SEE ALSOnamespace(n), upvar(n), variable(n)
KEYWORDSglobal, namespace, procedure, variable 0
Johanes Gumabo
Data Size : 7,393 byte
man-global.nBuild : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 259,295
Visitor ID : :
Visitor IP : 52.14.7.103 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (rof_escape_sequence_block|26|(null)|(null)|-1|140) (parse_manual_page_|252|global.n|282/140|══─}─══|.══─}─══
) (htmlprn|149|global.n|282/140|.══─}─══|.══─}─══
) (rof_escape_sequence|91|global.n|282/141|\}|.\}
) (parse_manual_page_|252|global.n|282/141|\}|.\}
)