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

History Of Ticket 715751ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 715751ffffffffffffffffffffffffffffffffff

  1. Ticket change [ac70d17744] (rid 101289) by dgp on 2003-04-05 08:22:52:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      This script panics:
      
      proc foo bar {}
      while 1 {
          set dictv [dict create a 0]
          set share [dict values $dictv]
          foo [dict incr dictv a]
      }
      
      due to broken refcount initialization
      in the Dict struct.
      
      Some C compilers are not happy with
      a label like valueAlreadyInDictionary
      on line 1769 that does not label any
      C statement, but the end of a block.
      
      There are several typos in comments.
      
      The name for the new Tcl_ObjType
      is "hashDictionary", but the name
      "dict" fits in better with other type names.
      
      A patch to be filed in a moment fixes these
      problems.
      
      The file tclDictObj.c also will not compile
      on any platform where 
      TCL_WIDE_INT_IS_LONG is #define'd
      because it refers to &tclWideIntType which
      does not exist on those platforms.  I prefer
      to fix that bug by applying the patch for
      Tcl Bug 713562.
      
      
      
    4. foundin initialized to: "obsolete: 8.5a0"
    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: "15. Dict Object"
    10. title initialized to: "several bugs in tclDictObj.c"
    11. type initialized to: "Bug"
  2. Add attachment "715751.patch" [772fcb4ba6] (rid 89738) by dgp on 2003-04-05 15:26:24.

  3. Ticket change [a88530610b] (rid 99012) by dgp on 2003-04-05 15:26:24:

    1. icomment:
      
      
      File Added - 46859: 715751.patch
      
      Logged In: YES 
      user_id=80530
      
      ...and here's that patch.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [f26a837a26] (rid 109530) by dkf on 2003-04-07 17:25:31:

    1. closedate changed to: "2003-04-07T10:25:31"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      First point:  Uck.  Forgot to put the refcount init in
      everywhere it was needed when I added reference counts to
      the Dict structure (I previously used Tcl_Preserve to manage
      it, but that was far less reliable and had quite a tendency
      to lose the representation at unfortunate times, which I
      only discovered during testing...)
      
      Second point:  *sigh*  One of the few times GCC's
      permissiveness has caught me out.
      
      Third point:  D'oh!
      
      Fourth point:  Not my problem, as the code I checked in
      never used "hashDictionary", but rather always "dict".  :^)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"