Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cdd127449a4bd2dea7c614c7e28e7a1a5bf655b5
Ticket: 1355342fffffffffffffffffffffffffffffffff
cmd deletion traces do not discard the result
User & Date: msofer on 2005-11-12 17:40:56
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    % proc x {} {}
    % trace add command x delete {set w aha!;#}
    % rename x {}
    aha!
    % info patch
    8.5a4
    
    Comparing TraceCommandProc in HEAD (tclTrace.c) with
    8-4-branch (tclCmdMZ.c), I see that we still have the
    comment that the result is discarded, but the code is
    missing: 8.4 has
    
       Tcl_SaveResult(interp, &state);
       stateCode = iPtr->returnCode;
       ...
       Tcl_RestoreResult(interp, &state);
       iPtr->returnCode = stateCode;
    
    Not fixing myself as I'm not sure about the correct
    fix. This code was removed on 2004-10-19 (tclTraces.c
    version 1.17) when TclSaveInterpState and related were
    created; the Changelog says:
    "Callers of Tcl_*Result updated to call the new
    routines. The calls were relocated in several cases to
    perform save/restore operations only when needed."
    but I do not see where this might have been relocated to.
    
    
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. priority changed to: "9 Immediate"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "46. Traces"
  10. title changed to: "cmd deletion traces do not discard the result"
  11. type changed to: "Bug"