Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a844be23da15b0362d5615f0b52d77b04b57c658
Ticket: 1047286fffffffffffffffffffffffffffffffff
[namespace delete]: command delete traces: cmd already gone
User & Date: dgp on 2004-10-14 19:53:02
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    When command delete traces fire,
    the command is supposed to still
    be there (even though you cannot
    stop its deletion).  Like so:
    
    % proc callback {old - -} {
        puts "$old exists: [namespace which $old]"
    }
    % proc bar {} {}
    % trace add command bar delete callback
    % rename bar {}
    ::bar exists: ::bar
    
    
    However TclTeardownNamespace
    deletes access to commands before
    deleting the commands (and thus
    firing their delete traces).  See:
    
    % namespace eval foo {proc bar {} {}}
    % trace add command foo::bar delete callback
    % namespace delete foo
    ::foo::bar exists: 
    unknown command "::foo::bar"
    
    Some re-ordering in TTN() is needed.
    
    
  4. foundin changed to: "obsolete: 8.4.7"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "21. [namespace]"
  10. title changed to:
    [namespace delete]: command delete traces: cmd already gone
    
  11. type changed to: "Bug"