Overview
| Artifact ID: | a5c285ab0d5bc1e03a458148e51c6bdf5c580acc |
|---|---|
| Ticket: | 1590232fffffffffffffffffffffffffffffffff
error in cmd traces & aliases |
| User & Date: | msofer on 2006-11-03 23:14:19 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
Aliases resolve command names in the global namespace, but execute in the caller's scope. In the presence of traces that cause a second resolution, the second time the resolution proceeds in caller scope instead of global: mig@ice:~$ cat /tmp/trace set res {} proc x {} {return ::} namespace eval a {} proc a::x {} {return ::a} interp alias {} y {} x lappend res [namespace eval a y] trace add execution x enter { rename ::x {} proc ::x {} {return ::} #} lappend res [namespace eval a y] puts $res mig@ice:~$ /home/CVS/tcl8.5a5/unix/tclsh /tmp/trace :: ::a Correct behaviour is restored with the attached patch, returning :: :: - foundin changed to: "obsolete: 8.5a6"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "msofer"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "error in cmd traces & aliases"
- type changed to: "Bug"