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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "46. Traces"
- title changed to:
Tcl_SetVar2Ex() does not create new namespace (bad docs)
- type changed to: "Bug"