|
From: SourceForge.net <no...@so...> - 2010-07-02 20:59:20
|
Bugs item #3024379, was opened at 2010-07-02 14:55 Message generated for change (Comment added) made by dkf You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3024379&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 47. Bytecode Compiler Group: current: 8.5.8 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Arjen Markus (arjenmarkus) Assigned to: Donal K. Fellows (dkf) Summary: Errors thrown by the expr command may give NONE as errorCode Initial Comment: 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 ---------------------------------------------------------------------- >Comment By: Donal K. Fellows (dkf) Date: 2010-07-02 21:59 Message: 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!) ---------------------------------------------------------------------- Comment By: Donal K. Fellows (dkf) Date: 2010-07-02 21:39 Message: Fixed on HEAD ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=3024379&group_id=10894 |