Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.