Skip to content
Tcl Source Code History Of Ticket 1360532fffffffff
Login

History Of Ticket 1360532fffffffff

Artifacts Associated With Ticket 1360532fffffffff

  1. Ticket change [39b873bd20] (rid 112439) by dgp on 2005-11-18 20:16:31:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "obsolete: 8.4.12"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "48. Number Handling"
    10. title initialized to: "trailing whitespace handling"
    11. type initialized to: "Bug"
  2. Ticket change [2db89182fb] (rid 119109) by dgp on 2005-11-19 23:43:18:

    1. assignee changed to: "kennykb"
    2. 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.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. title changed to: "leading/trailing whitespace handling"
    6. username: "dgp"
  3. Ticket change [558d40a5b4] (rid 94153) by marttj on 2005-11-24 07:36:22:

    1. 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.
      
      
    2. login: "marttj"
    3. mimetype: "text/plain"
    4. username: "marttj"
  4. Ticket change [fc0f55d4b4] (rid 108166) by dgp on 2005-11-25 22:18:37:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [b1a182bd6f] (rid 98179) by dgp on 2005-12-20 01:27:56:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2005-12-19T18:27:56"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      patch @ 1382287 fixes this.
      
      Watch that report for resolution.
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Duplicate"
    8. status changed to: "Closed"
    9. subsystem changed to: "18. Commands M-Z"
    10. username: "dgp"