summaryrefslogtreecommitdiffstats
path: root/doc/proc.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-01-22 23:38:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-01-22 23:38:21 (GMT)
commit6b06529a1e43e93c1b2d150ef84a2c521b97255d (patch)
tree4595b9189d30ab161b3de468fb60a21a9cce4745 /doc/proc.n
parent8af9602bdce0f0cca4eddf33487c19679f894d6c (diff)
downloadtcl-6b06529a1e43e93c1b2d150ef84a2c521b97255d.zip
tcl-6b06529a1e43e93c1b2d150ef84a2c521b97255d.tar.gz
tcl-6b06529a1e43e93c1b2d150ef84a2c521b97255d.tar.bz2
[Bug 1970629]: Define a bit better what the current namespace of a procedure is
Diffstat (limited to 'doc/proc.n')
-rw-r--r--doc/proc.n8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/proc.n b/doc/proc.n
index 75cab29..a6432e7 100644
--- a/doc/proc.n
+++ b/doc/proc.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: proc.n,v 1.12 2010/01/20 13:42:17 dkf Exp $
+'\" RCS: @(#) $Id: proc.n,v 1.13 2010/01/22 23:38:21 dkf Exp $
'\"
.so man.macros
.TH proc n "" Tcl "Tcl Built-In Commands"
@@ -66,6 +66,12 @@ deleted when the procedure returns. One local variable is automatically
created for each of the procedure's arguments.
Other variables can only be accessed by invoking one of the \fBglobal\fR,
\fBvariable\fR, \fBupvar\fR or \fBnamespace upvar\fR commands.
+The current namespace when \fIbody\fR is executed will be the
+namespace that the procedure's name exists in, which will be the
+namespace that itwas created in unless it has been changed with
+\fBrename\fR.
+'\" We may change this! It makes [variable] unstable when renamed and is
+'\" frankly pretty crazy, but doing it right is harder than it looks.
.PP
The \fBproc\fR command returns an empty string. When a procedure is
invoked, the procedure's return value is the value specified in a