Skip to content
Tcl Source Code History Of Ticket 1588842fffffffff
Login

History Of Ticket 1588842fffffffff

Artifacts Associated With Ticket 1588842fffffffff

  1. Ticket change [7a856a1bfd] (rid 90338) by dgp on 2006-11-01 20:13:21:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dgp"
    10. subsystem initialized to: "21. [namespace]"
    11. title initialized to:
      TclGetNamespaceFromObj returns TCL_OK when not found
      
    12. type initialized to: "Bug"
  2. Ticket change [7dd16f2651] (rid 97299) by dgp on 2006-11-23 03:22:07:

    1. assignee changed to: "dgp"
    2. priority changed to: "8"
  3. Ticket change [1d809d0dba] (rid 90830) by dgp on 2007-01-31 02:29:49:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [8bfbe02f1c] (rid 127676) by dgp on 2007-09-10 02:29:09:

    1. closedate changed to: "2007-09-09T19:29:09"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      Originator: YES
      
      
      fixed by patch 1686862
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"