Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a4f371c2dfcabe27ee15bb51030f6945ddc4eeb3
Ticket: 582533ffffffffffffffffffffffffffffffffff
rename traces follow renamed command
User & Date: duquette on 2004-08-22 01:23:05
Changes

  1. icomment:
    Logged In: YES 
    user_id=372859
    
    I strongly disagree that rename and delete traces should attach to 
    command names rather than commands.  Snit uses a rename/delete 
    trace to detect when a Snit instance is renamed or deleted...and if the 
    Snit instance is renamed, the trace remains attached to the Snit instance 
    under its new name, as it should.  If myobj is the name of a Snit 
    instance, then
    
    % mysnittype myobj
    % rename myobj hisobj
    % rename hisobj ""
    
    destroys the instance, as it should.
    
    In any event, the current behavior has been in place for the entire 
    lifespan of Tcl 8.4.  If you change it, it will break Snit badly, and I
    can't imagine that Snit's the only package affected.
    
    If the other behavior is really necessary, add it as
    
    % trace add commandname foo ....
    
    
    
    
    
  2. login: "duquette"
  3. mimetype: "text/plain"
  4. username: "duquette"