Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b40de5ef317732173040f2ba097c0c41c7a8ea16
Ticket: 1338280fffffffffffffffffffffffffffffffff
unset traces during namespace delete misbehave
User & Date: msofer on 2005-11-01 04:45:32
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Patch not committed: it contradicts the comment in
    TclTeardownNamespace:
     /*
      * Start by destroying the namespace's variable table,
      * since variables might trigger traces.
      */
    
    In particular, the patch changes the behaviour of the script:
    
      namespace eval a {
          proc p {} {puts hi}
          trace add variable x unset {a::p;#}
          set x 1
       }
       namespace delete a
    
    which prints 'hi' before the patch, and does not after the
    patch. Note that these comments in the source are the only
    documentation about the ordering of operations during
    namespace deletion.
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"