Skip to content
Tcl Source Code History Of Ticket 545661ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 545661ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 545661ffffffffffffffffffffffffffffffffff

  1. Ticket change [dfc8860250] (rid 115071) by msofer on 2002-04-18 13:59:02:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      There is an inconsistent behaviour in the [expr] error
      handler: the moment when an invalid operand is detected
      and an error is raised depends on the evaluation path
      of the expression (compiled at compile-time vs at
      run-time):
      
      % set a 08
      08
      % expr $a - 1
      "08" is an invalid octal number
      % expr {$a - 1}
      can't use invalid octal number as operand of "-"
      
      The compiled-at-run-time version seems not to respect
      the  expr.n manual page, which states:
      "If no numeric interpretation is possible, then an
      operand is left as a string (and only a limited set  of
      operators may be applied to it)."
      
      % set a 08
      08
      % expr $a == 1
      "08" is an invalid octal number
      % expr {$a == 1}
      0
      
      See also the (off-topic?) comments in [Bug #542588].
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "bug in expr error handler"
    11. type initialized to: "Bug"
  2. Ticket change [2986cbd74f] (rid 88888) by dgp on 2003-11-13 08:29:27:

    1. foundin changed to: "obsolete: 8.3.4"
  3. Ticket change [2d33744834] (rid 119029) by msofer on 2004-03-28 07:37:42:

    1. closedate changed to: "2004-03-28T00:37:42"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Mmhh ... this is probably my misunderstanding of 'expr'; if
      nobody else complains, I'll close this as invalid.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "msofer"
  4. Ticket change [fd6471538a] (rid 108406) by dgp on 2004-03-29 11:58:22:

    1. closedate changed to: "2004-03-29T04:58:22"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      Looks like a distinction
      between a parsing error
      and an evaluation error.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. username: "dgp"