Skip to content
Tcl Source Code History Of Ticket 1229765fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1229765fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1229765fffffffffffffffffffffffffffffffff

  1. Ticket change [53b445643d] (rid 93805) by dgp on 2005-06-29 15:05:19:

    1. assignee initialized to: "mdejong"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      These changes were committed today
      without reference to anything in the
      Tracker.
      
      Recording the patch here so it may be
      reviewed, and its purpose may be
      explained.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "7 High"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "47. Bytecode Compiler"
    10. title initialized to: "mystery patch"
    11. type initialized to: "Patch"
  2. Add attachment "mo.patch" [818e7f8be8] (rid 117060) by dgp on 2005-06-29 22:05:20.

  3. Ticket change [858947915f] (rid 131336) by dgp on 2005-06-29 22:05:20:

    1. icomment:
      
      
      File Added - 140229: mo.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [8256ff679b] (rid 117221) by dgp on 2005-06-29 22:35:33:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Although the patch adds ~30 new
      tests, the only one that I see with
      different outcome before and
      after the changes to tclExecute.c
      is test expr-33.2 .
      
      This appears to be a detail of
      the boundary between recognition
      of literal integer value as wide vs. non-wide,
      which is notoriously tricky, and not
      historically consistent; i.e. something that
      needs some review.
      
      I don't really know what the intent
      of all the other additional tests is.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [b3eb3573c0] (rid 124932) by dgp on 2005-06-29 22:47:24:

    1. assignee changed to: "kennykb"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Issue appears to be a parsing ambiguity
      when the literal LONG_MIN value appears
      in an expression.
      
      expr {-0x80000000}
      
      The string "-0x80000000" is recognized
      by Tcl as a non-wide integer:
      
        % string is integer -0x80000000
        1
      
      However, the **expression** "-0x80000000"
      gets parsed into unary operator "-" followed
      by literal value "0x80000000" and the result
      becomes a wide integer.
      
      Same issue, just less obvious, with the
      expression -2147483648 .
      
      Did I get that right?
      
      With true EIAS numbers (where we're headed?)
      this will no longer matter (right?), but since 
      currently wide vs. non-wide changes computations,
      I can see that this is an issue in need of resolution.
      
      kennykb, any comments from the numerics reform
      leader?
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. title changed to: "expr: ambiguous LONG_MIN parse"
    6. username: "dgp"
  6. Ticket change [048a471e56] (rid 120011) by mdejong on 2005-06-30 04:06:43:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      Hello gents
      
      The bug fix was just for parsing of a literal LONG_MIN
      value. These
      two expr commands would both return 1 in earlier versions of
      Tcl.
      
      set min_long -2147483648
      
      expr {($min_long - 1) == 0x7FFFFFFF}
      
      expr {(-2147483648 - 1) == 0x7FFFFFFF}
      
      The current version was parsing the number "2147483648"
      as a 64 bit long long and then it would keep it as a wide type
      thinking that it was out of the long range.
      
      Re the other tests. These are just tests for expr functionality
      that were not already covered someplace else. I am writing
      a Tcl -> Java compiler for Jacl and these test cases were
      developed as part of the process. Since they all pass already,
      it seemed safe to check them in.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  7. Ticket change [3fd8d59c3b] (rid 121532) by dgp on 2005-06-30 04:29:07:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      thanks for the followup.
      
      so this patch is undoing part of TIP 72?
      Do I understand that right?
      
      Or is it correcting a (buggy) behavior
      change that happened separate from
      TIP 72?  When did the undesirable
      behavior show up?
      
      Anyhow, I think TIP 249 will take care
      of such matters in 8.5.  Open question
      whether anything needs to happen
      for 8.4.12 and later on this point.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "5 Medium"
    5. username: "dgp"
  8. Ticket change [f6888bbc1d] (rid 130319) by mdejong on 2005-06-30 04:33:54:

    1. icomment:
      Logged In: YES 
      user_id=90858
      
      This is just a little bug that slipped in with TIP 72.
      Nobody is going to
      expect that the literal -2147483648 is going to parse
      differently than
      the string "-2147483648" in an expr.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  9. Ticket change [1d04dde839] (rid 90715) by dgp on 2005-06-30 04:38:52:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Yes, and the patch is a fine
      workaround until TIP 249 fixes
      all these matters correctly.
      thanks.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [82c806c68f] (rid 117286) by dgp on 2005-07-12 00:11:00:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2005-07-11T17:11:00"
    3. closer changed to: "dgp"
    4. resolution changed to: "Accepted"
    5. status changed to: "Closed"