|
2010-07-03
| ||
| 03:59 | • Closed ticket [3024379fff]: Errors thrown by the expr command may give NONE as e... artifact: 0ccc00da0f user: dkf | |
| 03:39 | • Ticket [3024379fff]: 1 change artifact: 7fdb3a48c1 user: dkf | |
| 03:39 | • Ticket [3024379fff]: 4 changes artifact: e3fe910267 user: dkf | |
| 03:10 | • Ticket [3024379fff]: 3 changes artifact: a13d408cef user: dkf | |
|
2010-07-02
| ||
| 13:55 | • New ticket [3024379fff]. artifact: 2a70ccbb8d user: arjenmarkus | |
Errors thrown by the expr command may give NONE as errorCode
Closed / Fixed3024379fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-07-02 13:55:28
Consider the following erroneous calls to expr:
expr {sqrt(-1)/2.0} and expr {sqrt(1/2.0}
The error messages are clear enough - a non-numeric floating point value in the first case and a missing parenthesis in the second.
In both cases however errorCode is NONE.
This makes it hard to distinguish domain errors and syntax errors
Tcl version: 8.5.8
dkf Ticket [3024379fff]: 3 changes
[History diff]2010-07-03 03:10:39
dkfplain2010-07-03 03:39:00
Fixed on HEAD
dkf Ticket [3024379fff]: 1 change
[History diff]2010-07-03 03:39:01
dkfplain2010-07-03 03:59:19
allow_comments - 1 Fixed on 8.5 branch. Always now it's ARITH DOMAIN in the case you describe (since NaN isn't in the domain of *any* math operator!)
Log in (anonymous is fine) to add a comment.