Overview
| Artifact ID: | 5085a70c8ab71969998bb0f08a67f40cf8c08ff1 |
|---|---|
| Ticket: | 582522ffffffffffffffffffffffffffffffffff
aliases do not fire exec traces |
| User & Date: | dgp on 2002-07-16 22:07:25 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
% proc print args {puts "printtrace $args"} % proc foo {} {puts orig_foo} % interp alias {} al_foo {} foo al_foo % trace add execution foo enter {print foo} % trace add execution al_foo enter {print al_foo} % foo printtrace foo foo enter orig_foo % al_foo printtrace al_foo al_foo enter orig_foo % The [print foo] trace is missing. It should have been fired by [al_foo]. The problem seems to be that execution traces are performed by TclEvalObjvInternal() and aliases get evaluated by TclObjInvoke() which bypasses that and executes the command procedure directly. In combination with Bug 582506, it seems the correct solution may be to tie execution traces into the command procedure itself instead of in TclEvalObjvInternal(). - foundin changed to: "obsolete: 8.4b2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "aliases do not fire exec traces"
- type changed to: "Bug"