summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--ChangeLog22
-rw-r--r--doc/proc.n8
2 files changed, 21 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 79e9ff4..b35dc5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,15 +1,21 @@
+2010-01-22 Donal K. Fellows <dkf@users.sf.net>
+
+ * doc/proc.n: [Bug 1970629]: Define a bit better what the current
+ namespace of a procedure is.
+
2010-01-22 Jan Nijtmans <nijtmans@users.sf.net>
- * generic/tclInt.decls Don't use DWORD and HANDLE here
- * generic/tclIntPlatDecls.h
- * generic/tcl.h Revert [2009-12-21] change, in stead
- * generic/tclPort.h resolve the CYGWIN inclusion problems by
- * win/tclWinPort.h re-arranging the inclusions at other places.
+ * generic/tclInt.decls: Don't use DWORD and HANDLE here.
+ * generic/tclIntPlatDecls.h:
+ * generic/tcl.h: Revert [2009-12-21] change, instead
+ * generic/tclPort.h: resolve the CYGWIN inclusion problems by
+ * win/tclWinPort.h: re-arranging the inclusions at other
+ places.
* win/tclWinError.c
* win/tclWinPipe.c
- * win/tcl.m4 Make cygwin configuration error into
- * win/configure.in a warning: CYGWIN compilation works
- * win/configure although there still are test failures.
+ * win/tcl.m4 Make cygwin configuration error into
+ * win/configure.in a warning: CYGWIN compilation works
+ * win/configure although there still are test failures.
2010-01-22 Donal K. Fellows <dkf@users.sf.net>
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