Artifacts Associated With Ticket 3525462
Ticket change [87676f5fff] (rid 131689) by zoltan3 on 2012-05-10 08:30:16:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Following can be seen in the expr's manual: expr {"0y" < "0x12"} returns 1, because it is done using string comparison after the second operand is converted to the string 18. But the command returns 0 in the Tcl interpreter. In the manual, part "STRING OPERATIONS" we can see: "Because of Tcl's tendency to treat values as numbers whenever possible, except in the case of the eq and ne operators.". And I expect the same on the ground of the part "OPERANDS": "Where possible, operands are interpreted as integer values." But is looks like a bug in the documentation. Only if both operands could be converted to numbers would their numerical values be compared. - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "zoltan3"
- subsystem initialized to: "None"
- title initialized to: "Expr documentation bug (expr {"0y" < "0x12"})"
- type initialized to: "Bug"
Ticket change [ecd4a2aa8a] (rid 103773) by dkf on 2012-05-10 19:55:07:
- assignee changed to: "dkf"
- priority changed to: "7 High"
- subsystem changed to: "16. Commands A-H"
Ticket change [224f69a5cb] (rid 130724) by dkf on 2012-05-17 06:29:42:
- closedate changed to: "2012-05-16T23:29:42"
- closer changed to: "dkf"
- foundin changed to: "obsolete: 8.4.0"
- icomment:
allow_comments - 1 Hmm, it's not worked that way for a long time now (since at least 8.4.2, the oldest version I've got conveniently available). Corrected the docs to reflect reality. At a guess, the original documented behavior was really a bug even at the time.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"