Skip to content
Tcl Source Code History Of Ticket 1355342
Login

History Of Ticket 1355342

Artifacts Associated With Ticket 1355342

  1. Ticket change [cdd127449a] (rid 95952) by msofer on 2005-11-12 17:40:56:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.5a4"
    5. priority initialized to: "9 Immediate"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "46. Traces"
    10. title initialized to: "cmd deletion traces do not discard the result"
    11. type initialized to: "Bug"
  2. Ticket change [572955f0cf] (rid 94437) by msofer on 2005-11-14 07:43:19:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Tests trace-20.13-16 added to HEAD
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  3. Ticket change [00b672bdd1] (rid 119366) by dgp on 2005-11-14 23:21:40:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      The reasoning of that comment is that
      there's no need for each
      Tcl_CommandTraceProc and
      Tcl_VarTraceProc to save/restore
      the interp state is the dispatch
      routine takes care of that for all.
      
      In particular, the save/restore
      in TraceCommandProc was
      relocated to TclCheckExecutionTraces
      and TclCheckInterpTraces
      
      It appears the additional relocation
      to CheckCommandTraces (tclBasic.c)
      got overlooked?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [e70b717e7c] (rid 104389) by dgp on 2005-11-14 23:45:19:

    1. closedate changed to: "2005-11-14T16:45:19"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      committing the attached patch.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  5. Ticket change [ff97fa9c33] (rid 108777) by dgp on 2005-11-14 23:45:20:

    1. icomment:
      
      
      File Added - 156225: 1355342.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Add attachment "1355342.patch" [5b98b5ad22] (rid 118358) by dgp on 2005-11-14 23:45:20.