diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2004-09-06 09:44:56 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2004-09-06 09:44:56 (GMT) |
commit | 0e5952c887bd1c44ce8a13516659d6e763a2d381 (patch) | |
tree | f3df18b7b55fef1a57dbdfd4b3b9d48ee8923f16 /doc/expr.n | |
parent | e61f35c191941709a727ae6128a43b24a0ee5bff (diff) | |
download | tcl-0e5952c887bd1c44ce8a13516659d6e763a2d381.zip tcl-0e5952c887bd1c44ce8a13516659d6e763a2d381.tar.gz tcl-0e5952c887bd1c44ce8a13516659d6e763a2d381.tar.bz2 |
More documentation fixes from Mikhail Kolesnitchenko. [Patch 1022527]
Diffstat (limited to 'doc/expr.n')
-rw-r--r-- | doc/expr.n | 13 |
1 files changed, 6 insertions, 7 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: expr.n,v 1.13 2004/05/24 12:47:56 dkf Exp $ +'\" RCS: @(#) $Id: expr.n,v 1.14 2004/09/06 09:44:56 dkf Exp $ '\" .so man.macros .TH expr n 8.5 Tcl "Tcl Built-In Commands" @@ -19,7 +19,7 @@ expr \- Evaluate an expression .SH DESCRIPTION .PP -Concatenates \fIarg\fR's (adding separator spaces between them), +Concatenates \fIarg\fRs (adding separator spaces between them), evaluates the result as a Tcl expression, and returns the value. The operators permitted in Tcl expressions are a subset of the operators permitted in C expressions, and they have the @@ -62,7 +62,7 @@ possible at all.) .PP Operands may be specified in any of the following ways: .IP [1] -As an numeric value, either integer or floating-point. +As a numeric value, either integer or floating-point. .IP [2] As a Tcl variable, using standard \fB$\fR notation. The variable's value will be used as the operand. @@ -84,11 +84,10 @@ As a mathematical function whose arguments have any of the above forms for operands, such as \fBsin($x)\fR. See below for a list of defined functions. .LP -Where substitutions occur above (e.g. inside quoted strings), they +Where the above substitutions occur (e.g. inside quoted strings), they are performed by the expression's instructions. -However, an additional layer of substitution may already have -been performed by the command parser before the expression -processor was called. +However, the command parser may already have performed one layer of +substitution before the expression processor was called. As discussed below, it is usually best to enclose expressions in braces to prevent the command parser from performing substitutions on the contents. |