Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2012-12-10
02:46 • Closed ticket [3594188fff]: expr mathfunc comma separator for arguments plus... artifact: bb180ca092 user: ferrieux
02:46 • Ticket [3594188fff]: 4 changes artifact: 4470a0de25 user: ferrieux
2012-12-09
04:43 • New ticket [3594188fff]. artifact: a9bf123c9b user: pooryorick

expr mathfunc comma separator for arguments

Closed / Fixed3594188fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-12-09 04:43:00
The documentation for math functions does not explicitly state that function
arguments should be separated by a comma.  In the [expr] documentation, there
are two examples which illustrate the use of comma:

set radius [expr { hypot($y, $x) }]
set angle  [expr { atan2($y, $x) }]

and in the mathfunc documentation, there is another example:

atan2($y,$x)

but the documentation does not say that arguments must be separated by commas.
It would be more clear if it were stated explicitly that multiple argumetns to
a function must be comma-separated.
ferrieuxplain2012-12-10 02:46:06
Fixed in trunk.
ferrieux Closed ticket [3594188fff]. [History diff]2012-12-10 02:46:07
Log in (anonymous is fine) to add a comment.