Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 97b0155ab33b71e3563f8d712a38cfe91e7aed1d
Ticket: 2662380fffffffffffffffffffffffffffffffff
Bug in append
User & Date: msofer on 2011-04-12 18:39:41
Changes

  1. icomment:
    The "gross change in write traces" covers 2 cases:
    
    * trace undefined the var: in that case, TclPtrSetVar should just clear the var and return NULL
    
    * trace converted the var to an array: so what do we do now? What should append/set/etc return? In 8.4:
    
    % trace add variable x write foo
    % proc foo {name args} {upvar 1 $name x; unset x; set x(1) 1}
    % append x 2
    % set x
    can't read "x": variable is array
    % parray x
    x(1) = 1
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"