Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c6058770ce7058747d67dee8610a3dbf3de5966a
Ticket: 1201035fffffffffffffffffffffffffffffffff
crash in TclCheckInterpTraces
User & Date: dgp on 2005-05-17 04:36:01
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Note that adding a trace
    during an enterstep or
    leavestep callback can't
    impace the current command
    evaluation, but (inconsistently?)
    removing a trace takes effect
    immediately:
    
    % proc foo {} {
        lappend ::x foo
        lappend ::x foo
    }
    % proc bar args {   
        lappend ::x bar
    trace remove execution foo enterstep bar
    trace add execution foo enterstep bar
    }
    % trace add execution foo enterstep bar
    % foo
    bar foo foo
    
    
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"