Overview
| Artifact ID: | 7a856a1bfdf6d8e20d427f77afbeb81b2972e447 |
|---|---|
| Ticket: | 1588842fffffffffffffffffffffffffffffffff
TclGetNamespaceFromObj returns TCL_OK when not found |
| User & Date: | dgp on 2006-11-01 20:13:21 |
Changes
- assignee changed to: "msofer"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.5a6"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "21. [namespace]"
- title changed to:
TclGetNamespaceFromObj returns TCL_OK when not found
- type changed to: "Bug"