Artifacts Associated With Ticket 1049413
Ticket change [1bad585959] (rid 123193) by vincentdarley on 2004-10-18 16:21:40:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
If I create a command in a namespace, set an execution trace on it, and then import it into a different namespace, on calling the command, no execution traces fire. # Set things up namespace eval A { proc foo {a} { puts $a } namespace export foo } proc report {args} { puts stderr $args } trace add execution A::foo \ {enter leave enterstep leavestep} { report } namespace import A::foo # This triggers execution traces A::foo hello # This doesn't foo hello -- This is rather surprising given the imported command is just a link to the original command. In fact the following works interp alias {} bar {} A::foo # This does trigger execution traces bar -- Therefore it appears the bug is that execution of namespace imported commands doesn't trigger execution traces on those commands. - foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vincentdarley"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "namespace imported command isn't traced"
- type initialized to: "Bug"
Ticket change [ba39fa8001] (rid 129288) by msofer on 2004-10-18 23:26:52:
- closedate changed to: "2004-10-18T16:26:52"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Duplicate of Bug #582506
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "msofer"