Artifacts Associated With Ticket b2964460b6
Ticket change [04e5bdc579] (rid 168188) by pooryorick on 2019-01-09 00:18:54:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
The following script, <code><verbatim> namespace eval n1 { namespace export * proc hello {} { puts hello rename hello {} proc hello {} { puts goodbye } } } namespace eval n2 { namespace import [namespace parent]::n1::hello hello hello } </verbatim></code> produces the error <code> invalid command name "hello"</code>. However, if <code>rename hello {}</code> is removed, there is no error. - is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "21. [namespace]"
- title initialized to:
namespace import: routine resolution when target routine is deleted and recreated
- type initialized to: "Bug"
Ticket change [7f5537c852] (rid 168189) by sebres on 2019-01-09 09:49:50:
- icomment:
I'm pretty sure we'd close this ticket (as incorrect), because this work as expected:<br/> If you execute `rename hello {}` in-between this REMOVES also all imported links in all referenced namespaces (otherwise we'll get leaks).<br/> Without this removal the linked command could still remain, because it is simply replaced. - login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- icomment:
Ticket change [f77ae4f773] (rid 168198) by sebres on 2019-01-09 11:01:38:
- icomment:
As discussed in tcl-chat, it looks rather like a RFE: need a way to provide a persistent import of all commands exported from other namespace. This would affect namespace command resolver similar way like an alias (thus persistent) but only for the exported commands (therefore `namespace path`, `interp alias` etc are not an option for this purposes).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "None"
- title changed to:
persistent namespace import: routine resolution when target routine is deleted and recreated
- type changed to: "RFE"
- icomment: