开源文档分享

global

Section: Tcl Built-In Commands (3tcl)
Updated:
查看本页索引 返回目录



 

NAME

global - 访问全局变量  

总览 SYNOPSIS

global varname ?varname ...?



 

描述 DESCRIPTION

除非正在解释一个 Tcl 过程否则忽略这个命令。如果正在解释一个 Tcl 过程,则它声明这些给定的 varname 是全局变量而不是局部变量。全局变量是在全局名字空间中的变量。在这个当前过程的持续期间(duration)(并且只有在当前过程中执行的时候),对 varname 中任何一个的任何引用都将参照(refer to)叫相同名字的全局变量。

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 info locals like all other local variables.

 

参见 SEE ALSO

namespace(n), upvar(n), variable(n)

 

关键字 KEYWORDS

global, namespace, procedure, variable

 

[中文版维护人]

寒蝉退士  

[中文版最新更新]

2001/09/02  

《中国 Linux 论坛 man 手册页翻译计划》:

http://cmpp.linuxforum.net (链接不可用)  
本页面中文版由中文 man 手册页计划提供。
中文 man 手册页计划:https://github.com/man-pages-zh/manpages-zh


 

Index

NAME
总览 SYNOPSIS
描述 DESCRIPTION
参见 SEE ALSO
关键字 KEYWORDS
[中文版维护人]
[中文版最新更新]
《中国 Linux 论坛 man 手册页翻译计划》:

This document was created by man2html, using the manual pages.
Time: 03:17:06 GMT, July 01, 2024