Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c584e21b7e8cc4c825f3dc6c782e178e68b0dc80
Ticket: 756883ffffffffffffffffffffffffffffffffff
ResetObjResult to call registered free function first time
User & Date: ysutjandra on 2003-09-09 00:17:52
Changes

  1. icomment:
    Logged In: YES 
    user_id=799156
    
    You're right... we use Tcl_Alloc to allocate space for string 
    bytes.
    
    But still please consider using Tcl_DecrRefCount and 
    Tcl_IncrRefCount instead of calling the free function directly.
    
    The reason is that my program flags an error if the free 
    function is called when refCount is still greater than zero.  
    This flag is useful because a specific object type that we 
    implement will not be able to be recreated once it is deleted.  
    So the flag is to notify users that the current object held by 
    a tcl variable has been freed and they should recreate the 
    object themselves.
    
    -- Yohan
    
    
  2. login: "ysutjandra"
  3. mimetype: "text/plain"
  4. username: "ysutjandra"