From: SourceForge.net <no...@so...> - 2006-11-01 20:13:28
|
Bugs item #1588842, was opened at 2006-11-01 15:13 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1588842&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 21. [namespace] Group: development: 8.5a6 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Don Porter (dgp) Assigned to: miguel sofer (msofer) Summary: TclGetNamespaceFromObj returns TCL_OK when not found Initial Comment: [15:04] dgp TclGetNamespaceFromObj returns TCL_OK when the namespace doesn't exist [15:04] dgp is there a (good?) reason for this? [15:06] miguel It 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] dgp yes, I'm questioning the wisdom of the design [15:09] dgp As things stand, TCL_ERROR is never returned [15:09] miguel it NEVER returns anything but TCL_OK: the only possibility would be a TCL_ERROR from SetNsNameFromAny, and that one never errors either [15:09] miguel xed [15:09] dgp so the only thing that can go wrong... "no such namespace" [15:10] dgp is treated as nothing wrong to distinguish from the zero other ways things can go wrong. [15:10] dgp forcing every caller to check for NULL, and invent yet another inconsistent error message ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1588842&group_id=10894 |