From 82828f50faeffa36a7958087df1c3e3b8476fe84 Mon Sep 17 00:00:00 2001 From: dgp Date: Tue, 2 Sep 2003 16:48:22 +0000 Subject: Added another note about [return] during a [source]. --- doc/return.n | 7 +++++-- 1 file 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 -- cgit v0.12