Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: adbb51cdc9b25544dcb43633fa98318f58c88582
Ticket: 582532ffffffffffffffffffffffffffffffffff
delete trace doesn't pass FQ name
User & Date: dgp on 2002-07-16 22:36:57
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    % proc print args {puts $args}
    % namespace eval ns {proc foo {} {}}
    % trace add command ns::foo delete print
    % namespace delete ns
    foo {} delete
    
    Note that the command deleted is reported
    as "foo" instead of ::ns::foo .  Imagine deleting
    a top level namespace and tracing deletion
    of many commands in many child namespaces.
    This is not sufficient.
    
    The problem traces to CallCommandTraces()
    which uses Tcl_GetCommandName() to get
    the name to pass when oldName is NULL.
    It ought to call Tcl_GetCommandFullName()
    instead.
    
  4. foundin changed to: "obsolete: 8.4b2"
  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: "45. Parsing and Eval"
  10. title changed to: "delete trace doesn't pass FQ name"
  11. type changed to: "Bug"