Artifacts Associated With Ticket 1360532fffffffffffffffffffffffffffffffff
Ticket change [39b873bd20] (rid 112439) by dgp on 2005-11-18 20:16:31:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
bug present in both branches: % string is double 1\u00a0 1 % expr 1\u00a0 syntax error in expression "1 ": extra tokens at end of expression
- foundin initialized to: "obsolete: 8.4.12"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "48. Number Handling"
- title initialized to: "trailing whitespace handling"
- type initialized to: "Bug"
Ticket change [2db89182fb] (rid 119109) by dgp on 2005-11-19 23:43:18:
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=80530 contrast with % string is double \u00a01 0 % expr \u00a01 syntax error in expression " 1": character not legal in expressions which is consistent, but possibly wrong.
- login: "dgp"
- mimetype: "text/plain"
- title changed to: "leading/trailing whitespace handling"
- username: "dgp"
Ticket change [558d40a5b4] (rid 94153) by marttj on 2005-11-24 07:36:22:
- icomment:
Logged In: YES user_id=114531 I find this very confusing. Is this really a bug? The code for [string is integer] and [string is double] both seem to specifically allow trailing whitespace. The man page makes no mention of this, though. Why was trailing white space ever allowed? Allowing it means I cannot safely do this: if {[string is double $d]} { set x [expr $d + 1] } Since trailing white space has been allowed for a long time, there could be code out there that does this: if {[string is double $d]} { incr d } This currently works, but would be broken if trailing white space was disallowed. I would really like to know what the plan to fix this is. For sure, the documentation should be updated. - login: "marttj"
- mimetype: "text/plain"
- username: "marttj"
- icomment:
Ticket change [fc0f55d4b4] (rid 108166) by dgp on 2005-11-25 22:18:37:
- icomment:
Logged In: YES user_id=80530 Not to worry, the bug I'm reporting is the inconsistency, not the fact that trailing whitespace is permitted. I strongly suspect the "plan to fix this" will be either to make TclParseNumber ([expr]) more accepting of all kinds of whitespace to match [string is], or if that's difficult, or raises other problems, just leave things as they are. Removing the acceptance of whitespace is not an option in the 8.x series of releases, and likely not an option even after that.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b1a182bd6f] (rid 98179) by dgp on 2005-12-20 01:27:56:
- assignee changed to: "dgp"
- closedate changed to: "2005-12-19T18:27:56"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 patch @ 1382287 fixes this. Watch that report for resolution.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- subsystem changed to: "18. Commands M-Z"
- username: "dgp"