Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b860c9acbf9e8959c7e2ad9730b897c51e259874
Ticket: 3610393fffffffffffffffffffffffffffffffff
forwards clash with execution traces
User & Date: dkf on 2013-08-21 09:41:04
Changes

  1. closer changed to: "nobody"
  2. 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.
    
  3. icomment:
    I would like this fixed, but don't know what to do about it.
    
  4. login: "dkf"
  5. mimetype: "text/x-fossil-wiki"
  6. priority changed to: "6"
  7. severity changed to: "Minor"
  8. username: "dkf"