Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f46067525da87bf4dc66e3c3265932b4a211b593
Ticket: 3610404fffffffffffffffffffffffffffffffff
re-resolution gets wrong target
User & Date: dgp on 2013-04-09 18:57:23
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    Here's the real bug I've been striving to demonstrate,
    recording mismatches with exec tracing capability
    along the way.
    
    oo::object create foo
    oo::objdefine foo {
        method target {} {puts Hit!}
        forward bar my target
        method bump {} {
            set ns [info object namespace ::foo]
            rename ${ns}::my ${ns}::
            rename ${ns}:: ${ns}::my
        }
    }
    proc harness {} {
        foo target
        foo bar
    }
    proc handle {cmd args} {
        foo bump
    }
    trace add execution harness enterstep handle
    proc my {method} {
        puts Missed!
    }
    harness
    
    Output:
    
    Hit!
    Missed!
    
    The re-resolution of "my" happens in the wrong
    context.
    
    Comparing with the machinery in [tailcall], I think
    this one has a simple fix.
    
  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: "re-resolution gets wrong target"
  12. type changed to: "Bug"