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
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.5a4"
- priority changed to: "9 Immediate"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "46. Traces"
- title changed to: "cmd deletion traces do not discard the result"
- type changed to: "Bug"