Skip to content
Tcl Source Code History Of Ticket 3525462
Login

History Of Ticket 3525462

Artifacts Associated With Ticket 3525462

  1. Ticket change [87676f5fff] (rid 131689) by zoltan3 on 2012-05-10 08:30:16:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "zoltan3"
    10. subsystem initialized to: "None"
    11. title initialized to: "Expr documentation bug (expr {"0y" < "0x12"})"
    12. type initialized to: "Bug"
  2. Ticket change [ecd4a2aa8a] (rid 103773) by dkf on 2012-05-10 19:55:07:

    1. assignee changed to: "dkf"
    2. priority changed to: "7 High"
    3. subsystem changed to: "16. Commands A-H"
  3. Ticket change [224f69a5cb] (rid 130724) by dkf on 2012-05-17 06:29:42:

    1. closedate changed to: "2012-05-16T23:29:42"
    2. closer changed to: "dkf"
    3. foundin changed to: "obsolete: 8.4.0"
    4. 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.
      
      
    5. login: "dkf"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dkf"