summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-09-02 16:48:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-09-02 16:48:22 (GMT)
commit82828f50faeffa36a7958087df1c3e3b8476fe84 (patch)
tree3f2613cb41766cd8d300fb9340a14458c03aceea /doc
parent1a883a5ff1a71ad3f73f9614fbb8b08b9e9271bb (diff)
downloadtcl-82828f50faeffa36a7958087df1c3e3b8476fe84.zip
tcl-82828f50faeffa36a7958087df1c3e3b8476fe84.tar.gz
tcl-82828f50faeffa36a7958087df1c3e3b8476fe84.tar.bz2
Added another note about [return] during a [source].
Diffstat (limited to 'doc')
-rw-r--r--doc/return.n7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/return.n b/doc/return.n
index 0bcb6da..50407e9 100644
--- a/doc/return.n
+++ b/doc/return.n
@@ -6,7 +6,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: return.n,v 1.4 2003/09/02 16:32:12 dgp Exp $
+'\" RCS: @(#) $Id: return.n,v 1.5 2003/09/02 16:48:22 dgp Exp $
'\"
.so man.macros
.TH return n 8.5 Tcl "Tcl Built-In Commands"
@@ -187,7 +187,10 @@ evaluation of the body of another procedure, the process will
repeat itself up the call stack, decrementing the value of the
\fB-level\fR entry at each level, so that the \fIcode\fR will
be the return code of the current command \fIlevel\fR levels
-up the call stack.
+up the call stack. The \fBsource\fR command performs the
+same handling of the TCL_RETURN return code, which explains
+the similarity of \fBreturn\fR invocation during a \fBsource\fR
+to \fBreturn\fR invocation within a procedure.
.PP
The return code of the \fBreturn\fR command itself triggers this
special handling by procedure invocation. If \fBreturn\fR