Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9d1403c61e394b38156ae5ed901f5ba217ef7973
Ticket: 3610404fffffffffffffffffffffffffffffffff
re-resolution gets wrong target
User & Date: dgp on 2013-08-14 19:02:42
Changes

  1. assignee changed to: "dgp"
  2. closedate changed to: "2456519.29354567"
  3. closer changed to: "dgp"
  4. 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.
    
  5. icomment: "Finally getting back to closing this..."
  6. login: "dgp"
  7. mimetype: "text/plain"
  8. resolution changed to: "Fixed"
  9. severity changed to: "Minor"
  10. status changed to: "Closed"