Overview
| Artifact ID: | 97fa3f30c255b7d9b1a85b430b2fd9a6288e1119 |
|---|---|
| Ticket: | 2649975fffffffffffffffffffffffffffffffff
bizarre interaction of uplevel and tailcall |
| User & Date: | kennykb on 2009-02-28 23:20:34 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
I'm struggling to come up with a smaller example of this problem; it's quite nasty. When the attached 'bugg.tcl' script is run, it produces the output, v should have been found at global level but was found in bar's method bravo Removing the line: proc dump args {} from the script makes it print a play-by-play analysis of what happened. It appears that everything is working fine right up to the very end, when the last [tailcall] invokes ::grill create betty That constructor runs at level 2, despite having been tailcalled from level 1, and causing [upvar 1 v w] to resolve in the wrong callframe. - foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "7 High"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "kennykb"
- subsystem changed to: "35. TclOO Package"
- title changed to:
bizarre interaction of uplevel, tailcall, method invocation
- type changed to: "Bug"