diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-12-19 11:42:46 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-12-19 11:42:46 (GMT) |
commit | d9823d1d2b4d2f7e653dbd27b3ce38b470cf7b42 (patch) | |
tree | 708322eb43a1d2e6430c6e9112ccbb9fc850838c /doc | |
parent | 0d9c3c6fea70ee5c02ec0c52388a1914bca1ff4c (diff) | |
parent | ee58f2d325a281f03cf6669e8d7ae2c377a5af2d (diff) | |
download | tcl-d9823d1d2b4d2f7e653dbd27b3ce38b470cf7b42.zip tcl-d9823d1d2b4d2f7e653dbd27b3ce38b470cf7b42.tar.gz tcl-d9823d1d2b4d2f7e653dbd27b3ce38b470cf7b42.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" |