Artifacts Associated With Ticket 582926ffffffffffffffffffffffffffffffffff
Ticket change [8ee65ac5db] (rid 120198) by dgp on 2002-07-17 16:48:21:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
[upvar $level $otherVar $myVar] is supposed to be able to handle a non-existent $otherVar, and mostly it does. But... % upvar 0 foo::bar soom can't access "foo::bar": parent namespace doesn't exist That seems counter to the spirit of [upvar] being able to link to non-existent variables. Seems similar to other situations where one would think that namespaces would be created as needed.
- foundin initialized to: "obsolete: 8.4b2"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "07. Variables"
- title initialized to: "upvar barfs on non-existent target"
- type initialized to: "RFE"
Ticket change [e1dd1bb309] (rid 87527) by msofer on 2002-07-18 20:44:06:
- closedate changed to: "2002-07-18T13:44:06"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 This looks OK to me, it is perfectly consistent with % set foo::bar soom can't set "foo::bar": parent namespace doesn't exist If this is the desired behaviour is an entirely different matter ;)
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Pending"
- username: "msofer"
Ticket change [031f4c47bb] (rid 119766) by dgp on 2002-07-18 21:38:25:
- icomment:
Logged In: YES user_id=80530 Fair enough. This is really an FR then. Is there already an FR filed asking that namespaces get created as needed?
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [042ce49bfe] (rid 119951) by msofer on 2002-07-19 02:41:54:
- assignee changed to: "nobody"
- foundin changed to: "None"
- icomment:
Logged In: YES user_id=148712 I couldn't find any.
- login: "msofer"
- mimetype: "text/plain"
- subsystem changed to: "None"
- username: "msofer"
Ticket change [9d6f73a62c] (rid 96305) by dgp on 2002-07-19 03:07:56:
- assignee changed to: "msofer"
- icomment:
Logged In: YES user_id=80530 more generally then, consider this a request that whenever a "namespace does not exist" error message is currently being returned, instead have the required namespace created automatically, just as variables are created as needed without any prior "declaration".
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "21. [namespace]"
- title changed to: "create namespaces as needed"
- username: "dgp"
Ticket change [1d5131053d] (rid 90782) by msofer on 2003-08-10 21:40:57:
- icomment:
Logged In: YES user_id=148712 Another example reported by Michael Kirkham <muonics> in [Bug 786187]: % namespace children :: ::tcl % proc ns::test {} {} can't create procedure "ns::test": unknown namespace % proc test {} {} % rename test ns::test % namespace children :: ::ns ::tcl - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [1daa311f95] (rid 90849) by msofer on 2003-08-10 21:43:44:
- icomment:
Logged In: YES user_id=148712 The docs do not really talk about the issue. However, this being very longstanding behaviour (since 8.0) I'm hesitant to fix it within a minor release. Maybe it should be TIPped? For the record, my (non-voting) opinion on such a TIP would be YES.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [fb881ce209] (rid 92080) by dgp on 2003-08-11 00:06:53:
- icomment:
Logged In: YES user_id=80530 No doubt a TIP is needed; that's why it's a feature request. The only argument against it, I think, is that the error behavior currently implemented makes it easier to discover bugs created by typos in namespace names.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [73a9c200c8] (rid 105075) by jenglish on 2003-10-07 04:36:31:
- icomment:
Logged In: YES user_id=68433 If $otherVar refers to a nonexistent namespace "foo", should "foo" be created as a subnamespace of the current namespace, or of the root? Either way, it could lead to more subtle problems like the "creative writing" dilemma.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"
- icomment:
Ticket change [06be450329] (rid 89265) by dgp on 2003-10-07 04:37:32:
- icomment:
Logged In: YES user_id=80530 Note that this misfeature contributes to Tk Bug 793909. It is likely there are several similar bugs in Tk, and perhaps in other extensions originally written for Tcl 7 that assume that Tcl_SetVar() will always succeed in creating a variable, and Tcl_TraceVar() will always succeed in creating a variable trace.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2656cc25d9] (rid 88327) by msofer on 2006-09-30 00:45:07:
- priority changed to: "8"
Ticket change [9d2a8357cd] (rid 96264) by dgp on 2006-11-23 03:22:55:
- assignee changed to: "dgp"
Ticket change [81d239a48d] (rid 117115) by dgp on 2007-01-30 00:27:23:
- title changed to: "TIP 277: create namespaces as needed"