Artifacts Associated With Ticket 1588842fffffffff
Ticket change [7a856a1bfd] (rid 90338) by dgp on 2006-11-01 20:13:21:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
[15:04]dgpTclGetNamespaceFromObj returns TCL_OK when the namespace doesn't exist [15:04]dgpis there a (good?) reason for this? [15:06]miguelIt is doc'ed in the function header. It signals 'no prob' by TCL_OK and 'not found' by a NULL pointer. So it was designed this way ... [15:07]dgpyes, I'm questioning the wisdom of the design [15:09]dgpAs things stand, TCL_ERROR is never returned [15:09]miguelit NEVER returns anything but TCL_OK: the only possibility would be a TCL_ERROR from SetNsNameFromAny, and that one never errors either [15:09]miguelxed [15:09]dgpso the only thing that can go wrong... "no such namespace" [15:10]dgpis treated as nothing wrong to distinguish from the zero other ways things can go wrong. [15:10]dgpforcing every caller to check for NULL, and invent yet another inconsistent error message
- foundin initialized to: "obsolete: 8.5a6"
- is_private initialized to: "0"
- 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:
TclGetNamespaceFromObj returns TCL_OK when not found
- type initialized to: "Bug"
Ticket change [7dd16f2651] (rid 97299) by dgp on 2006-11-23 03:22:07:
- assignee changed to: "dgp"
- priority changed to: "8"
Ticket change [1d809d0dba] (rid 90830) by dgp on 2007-01-31 02:29:49:
- icomment:
Logged In: YES user_id=80530 Originator: YES I think I see where this design comes from. Most callers of TclGetNamespaceFromObj() treat the non-existence of the namespace as an error. However, [namespace eval] does not. It creates the missing namespace. The design appears to be in place so that when [namespace eval] runs, Tcl doesn't generate an error message just to throw it away.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8bfbe02f1c] (rid 127676) by dgp on 2007-09-10 02:29:09:
- closedate changed to: "2007-09-09T19:29:09"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: YES fixed by patch 1686862
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"