Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 958f9ebbe85f51585aae5e6121ca045e943e8cac
Ticket: 217863ffffffffffffffffffffffffffffffffff
Tcl_SetVar2Ex() does not create new namespace (bad docs)
User & Date: nobody on 2000-10-26 00:45:04
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2057 Bug
    Version: 8.1
    SubmitDate: '1999-05-13'
    LastModified: '2000-04-27'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: ericm
    RelatedBugIDs: 4836
    OS: Solaris
    OSVersion: 2.5.1
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-04-27'
    
    
    Name:
    Byron Servies
    
    ReproducibleScript:
    Tcl_Obj *obj_p;
        obj_p = Tcl_NewIntObj(1);
        (void) Tcl_SetVar2Ex(interp, "gst::testvar", NULL, obj_p,
        TCL_LEAVE_ERR_MSG | TCL_NAMESPACE_ONLY);
    
    ObservedBehavior:
    Tcl_CreateObjCommand will create a namespace if one doesn't exist, but
        the SetVar commands do not.  Since there does not appear to be a
        documented C API for creating namespaces myself, I am unsure what to do.
         It does appear I can append the CREATE_NS_IF_UNKNOWN flag to the call,
        but that behavior isn't documented; just what I found in
        CreateObjCommand...
    
    DesiredBehavior:
    SetVar should create namespaces if they don't exist.  A better
        explaination of how to use the namespace facility from C would help as
        well.
    
    
    
    There exist a Tcl_(Create|Find)Namespace, which is what one should
    really use.  These are public APIs that unfortunately lack docs at
    the moment. 
    -- 09/15/1999 hobbs
    
    This bug is superceeded by 4836.
    
    - eric
     
    -- 04/27/2000 ericm
    
  4. foundin changed to: "obsolete: 8.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "46. Traces"
  10. title changed to:
    Tcl_SetVar2Ex() does not create new namespace (bad docs)
    
  11. type changed to: "Bug"