Skip to content
Tcl Source Code History Of Ticket 1049413fffffffff
Login

History Of Ticket 1049413fffffffff

Artifacts Associated With Ticket 1049413fffffffff

  1. Ticket change [1bad585959] (rid 123193) by vincentdarley on 2004-10-18 16:21:40:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "vincentdarley"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "namespace imported command isn't traced"
    11. type initialized to: "Bug"
  2. Ticket change [ba39fa8001] (rid 129288) by msofer on 2004-10-18 23:26:52:

    1. closedate changed to: "2004-10-18T16:26:52"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Duplicate of Bug #582506
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. username: "msofer"