URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [insight/] [tcl/] [doc/] [global.n] - Blame information for rev 578
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
578 |
markom |
'\"
|
2 |
|
|
'\" Copyright (c) 1993 The Regents of the University of California.
|
3 |
|
|
'\" Copyright (c) 1994-1997 Sun Microsystems, Inc.
|
4 |
|
|
'\"
|
5 |
|
|
'\" See the file "license.terms" for information on usage and redistribution
|
6 |
|
|
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
7 |
|
|
'\"
|
8 |
|
|
'\" RCS: @(#) $Id: global.n,v 1.1.1.1 2002-01-16 10:25:24 markom Exp $
|
9 |
|
|
'\"
|
10 |
|
|
.so man.macros
|
11 |
|
|
.TH global n "" Tcl "Tcl Built-In Commands"
|
12 |
|
|
.BS
|
13 |
|
|
'\" Note: do not modify the .SH NAME line immediately below!
|
14 |
|
|
.SH NAME
|
15 |
|
|
global \- Access global variables
|
16 |
|
|
.SH SYNOPSIS
|
17 |
|
|
\fBglobal \fIvarname \fR?\fIvarname ...\fR?
|
18 |
|
|
.BE
|
19 |
|
|
|
20 |
|
|
.SH DESCRIPTION
|
21 |
|
|
.PP
|
22 |
|
|
This command is ignored unless a Tcl procedure is being interpreted.
|
23 |
|
|
If so then it declares the given \fIvarname\fR's to be global variables
|
24 |
|
|
rather than local ones.
|
25 |
|
|
Global variables are variables in the global namespace.
|
26 |
|
|
For the duration of the current procedure
|
27 |
|
|
(and only while executing in the current procedure),
|
28 |
|
|
any reference to any of the \fIvarname\fRs
|
29 |
|
|
will refer to the global variable by the same name.
|
30 |
|
|
|
31 |
|
|
.SH "SEE ALSO"
|
32 |
|
|
namespace(n), variable(n)
|
33 |
|
|
|
34 |
|
|
.SH KEYWORDS
|
35 |
|
|
global, namespace, procedure, variable
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.