Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f94231d3ae34408386bcf616873d03dd2b396eb1
Ticket: 7f02ff1efa308825b21e58ec04cee898fe9c44ad
unset traces on local vars write in caller context
User & Date: gustafn2 on 2016-11-16 08:59:32
Changes

  1. icomment:
    unset traces on local variables are a nice means for firing handlers when local scopes are left. we are using this in some places for the automatic cleanup of local objects, when a proc scope is left. 
    
    Maybe this behavior could be moved with some tweaking into command leave traces. However,  the trace handler has no access to the local vars of the left proc, so one has to record the information about the objects which should be deleted somewhere else. E.g. defining on-shot handlers for every proc invocation seems expensive, global vars are not pretty, ...
    
  2. login: "gustafn2"
  3. mimetype: "text/plain"