diff options
author | ferrieux <ferrieux@users.sourceforge.net> | 2009-05-26 09:08:05 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@users.sourceforge.net> | 2009-05-26 09:08:05 (GMT) |
commit | 686a9ae36c1dd80c640cfd86c054fc097a9931d5 (patch) | |
tree | e9f8b9d1e47baa7763f196a521082ab1832167e9 | |
parent | 2c662b5c9124de8ddab0d178bb7950d3633b96b4 (diff) | |
download | tcl-686a9ae36c1dd80c640cfd86c054fc097a9931d5.zip tcl-686a9ae36c1dd80c640cfd86c054fc097a9931d5.tar.gz tcl-686a9ae36c1dd80c640cfd86c054fc097a9931d5.tar.bz2 |
Fixed documentation of the right-associativity of the ** operator.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | doc/expr.n | 14 |
2 files changed, 15 insertions, 4 deletions
@@ -1,3 +1,8 @@ +2009-05-26 Alexandre Ferrieux <ferrieux@users.sourceforge.net> + + * doc/expr.n: Fixed documentation of the right-associativity of + the ** operator. + 2009-05-14 Donal K. Fellows <dkf@users.sf.net> * generic/tclOOInfo.c (InfoObjectNsCmd): Added introspection mechanism @@ -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: expr.n,v 1.37 2008/10/17 10:22:25 dkf Exp $ +'\" RCS: @(#) $Id: expr.n,v 1.38 2009/05/26 09:08:05 ferrieux Exp $ '\" .so man.macros .TH expr n 8.5 Tcl "Tcl Built-In Commands" @@ -206,14 +206,20 @@ produced by each operator. The exponentiation operator promotes types like the multiply and divide operators, and produces a result that is the same as the output of the \fBpow\fR function (after any type conversions.) -All of the binary operators group left-to-right within the same -precedence level. For example, the command +All of the binary operators but exponentiation group left-to-right +within the same precedence level; exponentiation groups right-to-left. For example, the command .PP .CS \fBexpr\fR {4*2 < 7} .CE .PP -returns 0. +returns 0, while +.PP +.CS +\fBexpr\fR {2**3**2} +.CE +.PP +returns 512. .PP The \fB&&\fR, \fB||\fR, and \fB?:\fR operators have .QW "lazy evaluation" , |