Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7a856a1bfdf6d8e20d427f77afbeb81b2972e447
Ticket: 1588842fffffffffffffffffffffffffffffffff
TclGetNamespaceFromObj returns TCL_OK when not found
User & Date: dgp on 2006-11-01 20:13:21
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. 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
    
  4. foundin changed to: "obsolete: 8.5a6"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "21. [namespace]"
  11. title changed to:
    TclGetNamespaceFromObj returns TCL_OK when not found
    
  12. type changed to: "Bug"