Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 888b111058746a562afec68f6b52bcb2aa5e9d545515686943e6db8a17a2d53f
Ticket: 2969488fffffffffffffffffffffffffffffffff
trace variable doesn't fire if you upvar to an array element
User & Date: chw on 2022-08-26 18:59:29
Changes

  1. icomment:
    Additionally to TIP#634/635 I propose to make a function similar to
    
     Var *TclObjLookupVar(Tcl_Interp *interp,
                          Tcl_Obj *part1Ptr, const char *part2,
                          int flags, const char *msg,
                          const int createPart1, const int createPart2,
                          Var **arrayPtrPtr);
    
    a public (aka tclDecls.h) function in order to enable extension
    writers to deal with upvar'ed array elements as you did in tclEnv.c.
    The sole objective is to be able to find out the real names of the
    variable referenced in the trace callback.
    
  2. login: "chw"
  3. mimetype: "text/x-fossil-plain"