Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 66328101d1efcdf07eba56328d85d17967c9dc1f
Ticket: 3598580fffffffffffffffffffffffffffffffff
Tcl_ListObjReplace may release deleted elements too early
User & Date: ferrieux on 2012-12-29 20:50:34
Changes

  1. icomment:
    FWIW, I agree with Jan's analysis on all points.
    
    Re the naked refcount-- , I'm still wondering whether it shouldn't have a more explicit macro (like TclDecrRefCountNoDeleteAtZero : that wasn't a joke), for two reasons:
     
     (1) the need to use it, though rare, cannot be worked around; it is a consequence of the unfortunate choice create-at-zero mentioned earlier in this thread
    
     (2) A macro keeps the abstraction level for source compat (e.g. in case we want to steal a few bits in the refcount)
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"