Artifacts Associated With Ticket 1114355
Ticket change [b41f5de11d] (rid 124971) by dgp on 2005-02-01 23:22:13:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
A comment following the "name" argument to Tcl_FindCommand claims: "If it starts with "::", will be looked up in global namespace." Since custom resolvers are given first crack at the resolving task, and since they are apparently free to resolve names matching ::* however they like, I think this comment is false.
- foundin initialized to: "obsolete: 8.5a3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "21. [namespace]"
- title initialized to: "Tcl_FindCommand: bogus comment?"
- type initialized to: "Bug"
Ticket change [a37124486f] (rid 110047) by dgp on 2005-02-02 06:26:44:
- icomment:
Logged In: YES user_id=80530 Completing the thought, if a Tcl_FindCommand() caller wants to force resolution in the global namespace, it should use the TCL_GLOBAL_ONLY flag to accomplish that.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [0841f79606] (rid 89532) by dgp on 2005-02-02 23:18:25:
- icomment:
Logged In: YES user_id=80530 there may be a lurking inconsistency here with Tcl_GetCommandFromObj() where commands beginning with "::" *do* get special treatment.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [77252d15cc] (rid 89725) by dgp on 2005-02-02 23:30:58:
- icomment:
Logged In: YES user_id=80530 ok, so I'm closing in on the opinion that the comment *ought* to be true, and the bug here is that the current implementation of Tcl_FindCommand allows custom resolvers to interpret a fully qualified command name to mean something other than its plain meaning. It appears this possibility is inconsistent with assumptions in other parts of Tcl.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [28ccd943cd] (rid 88765) by dgp on 2005-08-30 02:01:27:
- priority changed to: "7 High"
Ticket change [1cc1409cfa] (rid 90670) by msofer on 2007-09-13 07:41:42:
- foundin changed to: "obsolete: 8.5a7"
- priority changed to: "8"
Ticket change [3ea8b458c7] (rid 121310) by msofer on 2007-10-28 01:03:21:
- closedate changed to: "2007-10-27T18:03:21"
- closer changed to: "msofer"
- foundin changed to: "obsolete: 8.5b2"
- icomment:
Logged In: YES user_id=148712 Originator: NO No inconsistency there: SetCmdNameFromAny calls Tcl_FindCommand to determine the command. What may be problematic is that the cmdName stores the global ns as the origin of the search for FQ names. This would cause buggy behaviour if (a) a namespace ns has a resolver that redirects FQ names (b) an FQ command ::cmdA is searched starting from ns, and resolved to (say) ::B (c) ::cmdA is resolved starting from elsewhere; the cached pointer to ::B will be used I agree that eventually the "correct" behaviour may be for FQ names to bypass all resolvers. Chose a "conservative" fix for now: insure that Tcl_FindCommand starts the search for FQ commands in the global ns. The difference is that resolvers on the global namespace or interp wide resolvers will be called. Tests show that itcl, xotcl and TclOO do not mind.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"