diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-12-19 11:43:40 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-12-19 11:43:40 (GMT) |
commit | c164d719c23ebe8d20d8420dc2345163a36878eb (patch) | |
tree | acb9b00e796181e99a10ffb0d8552cf7318e5a33 /doc | |
parent | 35047bd5e543d9e0eaa9ca52914e21104d556f25 (diff) | |
parent | ee58f2d325a281f03cf6669e8d7ae2c377a5af2d (diff) | |
download | tcl-c164d719c23ebe8d20d8420dc2345163a36878eb.zip tcl-c164d719c23ebe8d20d8420dc2345163a36878eb.tar.gz tcl-c164d719c23ebe8d20d8420dc2345163a36878eb.tar.bz2 |
merge main dev branch
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Load.3 | 2 | ||||
-rw-r--r-- | doc/NRE.3 | 2 | ||||
-rw-r--r-- | doc/expr.n | 16 |
3 files changed, 16 insertions, 4 deletions
@@ -31,7 +31,7 @@ Array of names of symbols to be resolved during the load of the library, or NULL if no symbols are to be resolved. If an array is given, the last entry in the array must be NULL. .AP int flags in -The value should normally be 0, but \fITCL_LOAD_GLOBALfR or \fITCL_LOAD_LAZYfR +The value should normally be 0, but \fITCL_LOAD_GLOBAL\fR or \fITCL_LOAD_LAZY\fR or a combination of those two is allowed as well. .AP void *procPtrs out Points to an array that will hold the addresses of the functions described in @@ -295,7 +295,7 @@ int int result) { /* \fIdata[0] .. data[3]\fR are the four words of data - * passed to \fBTcl_NREvalObj\fR */ + * passed to \fBTcl_NRAddCallback\fR */ \fI... postprocessing ...\fR @@ -39,9 +39,9 @@ additional operators not found in C. .SS OPERANDS .PP A Tcl expression consists of a combination of operands, operators, -and parentheses. +parentheses and commas. White space may be used between the operands and operators and -parentheses; it is ignored by the expression's instructions. +parentheses (or commas); it is ignored by the expression's instructions. Where possible, operands are interpreted as integer values. Integer values may be specified in decimal (the normal case), in binary (if the first two characters of the operand are \fB0b\fR), in octal @@ -283,6 +283,18 @@ rules for resolving functions in namespaces. Either current]::tcl::mathfunc::sin\fR will satisfy the request, and others may as well (depending on the current \fBnamespace path\fR setting). .PP +Some mathematical functions have several arguments, separated by commas like in C. Thus: +.PP +.CS +\fBexpr\fR {hypot($x,$y)} +.CE +.PP +ends up as +.PP +.CS +tcl::mathfunc::hypot $x $y +.CE +.PP See the \fBmathfunc\fR(n) manual page for the math functions that are available by default. .SS "TYPES, OVERFLOW, AND PRECISION" |