Overview
| Artifact ID: | ac60cb8bdbb83a0f8953f9fa8bb8ac424722a603 |
|---|---|
| Ticket: | 786187ffffffffffffffffffffffffffffffffff
proc requires a namespace to exist but rename doesn't |
| User & Date: | muonics on 2003-08-10 08:31:48 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed to:
I found this comment in TclRenameCommand while poking through the sources, which made me curious: "Make sure that the destination command does not already exist. The rename operation is like creating a command, so we should automatically create the containing namespaces just like Tcl_CreateCommand would." I found this interesting, because I often wind up doing an namespace eval "" just to make a namespace exist because I don't usually define my procs within the eval. So I ran a test: % namespace children :: ::tcl % proc ns::test {} {} can't create procedure "ns::test": unknown namespace % proc test {} {} % rename test ns::test % namespace children :: ::ns ::tcl Shouldn't proc be able to do the same? It would be quite handy. - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "muonics"
- subsystem changed to: "22. [proc] and [uplevel]"
- title changed to:
proc requires a namespace to exist but rename doesn't
- type changed to: "Bug"