diff options
author | dgp <dgp@users.sourceforge.net> | 2006-02-09 17:34:41 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-02-09 17:34:41 (GMT) |
commit | 3e2f142b59552edeaa2a6bb5e4a5d31e076ae8d7 (patch) | |
tree | 19ebc4b4f4d8e5362c861dd8242031f5c8e16600 /doc | |
parent | af5c89aba29208e6298cd59900eb13feaac963c8 (diff) | |
download | tcl-3e2f142b59552edeaa2a6bb5e4a5d31e076ae8d7.zip tcl-3e2f142b59552edeaa2a6bb5e4a5d31e076ae8d7.tar.gz tcl-3e2f142b59552edeaa2a6bb5e4a5d31e076ae8d7.tar.bz2 |
TIP#215 IMPLEMENTATION
* doc/incr.n: Revised [incr] to auto-initialize when varName
* generic/tclExecute.c: argument is unset. [Patch 1413115].
* generic/tclVar.c:
* tests/compile.test:
* tests/incr-old.test:
* tests/incr.test:
* tests/set.test:
Diffstat (limited to 'doc')
-rw-r--r-- | doc/incr.n | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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: incr.n,v 1.5 2004/10/27 12:53:22 dkf Exp $ +'\" RCS: @(#) $Id: incr.n,v 1.6 2006/02/09 17:34:41 dgp Exp $ '\" .so man.macros .TH incr n "" Tcl "Tcl Built-In Commands" @@ -26,6 +26,12 @@ integer) is added to the value of variable \fIvarName\fR; otherwise 1 is added to \fIvarName\fR. The new value is stored as a decimal string in variable \fIvarName\fR and also returned as result. +.PP +.VS 8.5 +Starting with the Tcl 8.5 release, the variable \fIvarName\fR passed +to \fBincr\fR may be unset, and in that case, it will be set to +the value \fIincrement\fR or to the default increment value of \fB1\fR. +.VE 8.5 .SH EXAMPLES Add one to the contents of the variable \fIx\fR: .CS @@ -44,7 +50,7 @@ variable \fIx\fR: .CE .PP Add nothing at all to the variable \fIx\fR (often useful for checking -whether an argument to a procedure is actually numeric and generating +whether an argument to a procedure is actually integral and generating an error if it is not): .CS \fBincr\fR x 0 |