Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bb8ec40ddd2d343dc3c92c431be69739f5d56168
Ticket: 3610393fffffffffffffffffffffffffffffffff
forwards clash with execution traces
User & Date: dgp on 2013-04-09 17:12:08
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    oo::object create foo
    oo::objdefine foo {
        method target {} {puts Hit!}
        forward bar my target
    }
    proc harness {} {
        foo target
        foo bar
    }
    proc handle {cmd args} {
        puts "Command [lindex $cmd 0] resolves to:"
        puts "\t'[uplevel 1 [list ::namespace which -command [lindex $cmd 0]]]'"
        puts "\t\tResolved at level [uplevel 1 {info level}]"
    }
    trace add execution harness enterstep handle
    harness
    
    
    Output:
    
    Command foo resolves to:
            '::foo'
                    Resolved at level 1
    Command puts resolves to:
            '::puts'
                    Resolved at level 2
    Hit!
    Command foo resolves to:
            '::foo'
                    Resolved at level 1
    Command my resolves to:
            ''
                    Resolved at level 1
    Command puts resolves to:
            '::puts'
                    Resolved at level 2
    Hit!
    
    
    The problem is that [my] is an execution-trace-able
    command, but the context in which it is executed
    does not match the expectations of execution trace
    handlers.  The CallFrame establishing the namespace
    context for command resolution is missing.
    
    
  4. foundin changed to: "current: 8.6.0"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "forwards clash with execution traces"
  12. type changed to: "Bug"