diff options
author | dgp <dgp@users.sourceforge.net> | 2019-06-10 18:53:29 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2019-06-10 18:53:29 (GMT) |
commit | c6cb158e39e58c0780cadfe0d2565ae94e79767e (patch) | |
tree | 5528a809d9f3019b23ee04154f9af5b06237387a /doc | |
parent | 95d4ef2aaecb4a90de398cacd37c1a2ccd1c4d45 (diff) | |
parent | 39fba10b45e247bf94cdca222334c7cd4eb40087 (diff) | |
download | tcl-c6cb158e39e58c0780cadfe0d2565ae94e79767e.zip tcl-c6cb158e39e58c0780cadfe0d2565ae94e79767e.tar.gz tcl-c6cb158e39e58c0780cadfe0d2565ae94e79767e.tar.bz2 |
merge 8.6
Diffstat (limited to 'doc')
-rw-r--r-- | doc/expr.n | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -97,7 +97,7 @@ and the value of \fBb\fR is 6. The command on the left side of each line produces the value on the right side. .PP .CS -.ta 6c +.ta 8c \fBexpr\fR 3.1 + $a \fI6.1\fR \fBexpr\fR 2 + "$a.$b" \fI5.6\fR \fBexpr\fR 4*[llength "6 2"] \fI8\fR @@ -190,16 +190,20 @@ Bit-wise OR. Valid for integer operands. \fB&&\fR . Logical AND. If both operands are true, the result is 1, or 0 otherwise. - +This operator evaluates lazily; it only evaluates its second operand if it +must in order to determine its result. .TP 20 \fB||\fR . Logical OR. If both operands are false, the result is 0, or 1 otherwise. +This operator evaluates lazily; it only evaluates its second operand if it +must in order to determine its result. .TP 20 -\fIx\fB?\fIy\fB:\fIz\fR +\fIx \fB?\fI y \fB:\fI z\fR . If-then-else, as in C. If \fIx\fR is false , the result is the value of \fIy\fR. Otherwise the result is the value of \fIz\fR. +This operator evaluates lazily; it evaluates only one of \fIy\fR or \fIz\fR. .PP The exponentiation operator promotes types in the same way that the multiply and divide operators do, and the result is is the same as the result of |