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.