Overview
| Artifact ID: | 1484e74dd01010577a3a1d0ceb69670ae1fea21b |
|---|---|
| Ticket: | 71c0878b712d056d9c69dba6f72e0efce751e290
Strange results when second argument to [incr] is a list |
| User & Date: | avl42 on 2017-03-05 14:35:29 |
Changes
- icomment:
Maybe that's obvious, anyway, but the new code to detect definitely-not-numbers only returns TCL_ERROR but doesn't set an error result string. The consequence is that eventually a previously suppressed error resurfaces, or just an empty string. For full correctness, we would need to ensure the same error message on a pure list/dict than on its canonical string rep. Fortunately, we only need to do this, if the interp is non-NULL, so the intended speed-up for tryCvtToNumeric isn't affected, as it already passes NULL for the interp. My suggested fix would be to change line 542 ("if (endPtrPtr ...") to "if (interp==NULL && endPtrPtr == NULL) ...". If there is an interp, we need an authentic error diagnose, so can't shortcut. - login: "avl42"
- mimetype: "text/plain"