summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2002-11-10 17:22:34 (GMT)
committerKevin B Kenny <kennykb@acm.org>2002-11-10 17:22:34 (GMT)
commit5416f398e807d9ebd4ae8941a882bf7e3b073728 (patch)
tree7b4016838229c19f091ca43632e4dedb6301b2a1
parent514ef098df503939a84e7dc12f1c8e76763bf83c (diff)
downloadtcl-5416f398e807d9ebd4ae8941a882bf7e3b073728.zip
tcl-5416f398e807d9ebd4ae8941a882bf7e3b073728.tar.gz
tcl-5416f398e807d9ebd4ae8941a882bf7e3b073728.tar.bz2
Added language to the Endekalogue to make it clear
that substitutions always take place from left to right. [Bug #635644]
-rw-r--r--ChangeLog6
-rw-r--r--doc/Tcl.n10
2 files changed, 15 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9cab6d3..4e4785e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-10 Kevin Kenny <kennykb@acm.org>
+
+ * doc/Tcl.n: Added language to the Endekalogue to make it clear
+ that substitutions always take place from left to right. [Bug
+ #635644]
+
2002-11-06 Mo DeJong <mdejong@users.sourceforge.net>
* changes: Note TclInExit TclInThreadExit changes.
diff --git a/doc/Tcl.n b/doc/Tcl.n
index 1277408..e8cc494 100644
--- a/doc/Tcl.n
+++ b/doc/Tcl.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: Tcl.n,v 1.5 2002/10/10 16:11:01 dgp Exp $
+'\" RCS: @(#) $Id: Tcl.n,v 1.6 2002/11/10 17:22:35 kennykb Exp $
'\"
.so man.macros
.TH Tcl n "8.1" Tcl "Tcl Built-In Commands"
@@ -190,6 +190,14 @@ processed entirely by the recursive call to the Tcl interpreter;
no substitutions are performed before making the recursive
call and no additional substitutions are performed on the result
of the nested script.
+.LP
+Substitutions take place from left to right, and each substitution is
+evaluated completely before attempting to evaluate the next. Thus, a
+sequence like
+.CS
+set y [set x 0][incr x][incr x]
+.CE
+will always set the variable \fIy\fR to the value, \fI012\fR.
.IP [11]
Substitutions do not affect the word boundaries of a command.
For example, during variable substitution the entire value of