Skip to content
Tcl Source Code Artifact [958f9ebbe8]
Login

Artifact [958f9ebbe8]

Artifact 958f9ebbe85f51585aae5e6121ca045e943e8cac:

Ticket change [958f9ebbe8] - New ticket [217863ffffffffff|217863ffff] <i>Tcl_SetVar2Ex() does not create new namespace (bad docs)</i>. by nobody on 2000-10-26 00:45:04.
D 2000-10-26T00:45:04
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s2057\sBug\nVersion:\s8.1\nSubmitDate:\s'1999-05-13'\nLastModified:\s'2000-04-27'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\sericm\nRelatedBugIDs:\s4836\nOS:\sSolaris\nOSVersion:\s2.5.1\nMachine:\sOther\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-04-27'\n\n\nName:\nByron\sServies\n\nReproducibleScript:\nTcl_Obj\s*obj_p;\n\s\s\s\sobj_p\s=\sTcl_NewIntObj(1);\n\s\s\s\s(void)\sTcl_SetVar2Ex(interp,\s"gst::testvar",\sNULL,\sobj_p,\n\s\s\s\sTCL_LEAVE_ERR_MSG\s|\sTCL_NAMESPACE_ONLY);\n\nObservedBehavior:\nTcl_CreateObjCommand\swill\screate\sa\snamespace\sif\sone\sdoesn't\sexist,\sbut\n\s\s\s\sthe\sSetVar\scommands\sdo\snot.\s\sSince\sthere\sdoes\snot\sappear\sto\sbe\sa\n\s\s\s\sdocumented\sC\sAPI\sfor\screating\snamespaces\smyself,\sI\sam\sunsure\swhat\sto\sdo.\n\s\s\s\s\sIt\sdoes\sappear\sI\scan\sappend\sthe\sCREATE_NS_IF_UNKNOWN\sflag\sto\sthe\scall,\n\s\s\s\sbut\sthat\sbehavior\sisn't\sdocumented;\sjust\swhat\sI\sfound\sin\n\s\s\s\sCreateObjCommand...\n\nDesiredBehavior:\nSetVar\sshould\screate\snamespaces\sif\sthey\sdon't\sexist.\s\sA\sbetter\n\s\s\s\sexplaination\sof\show\sto\suse\sthe\snamespace\sfacility\sfrom\sC\swould\shelp\sas\n\s\s\s\swell.\n\n\n\nThere\sexist\sa\sTcl_(Create|Find)Namespace,\swhich\sis\swhat\sone\sshould\nreally\suse.\s\sThese\sare\spublic\sAPIs\sthat\sunfortunately\slack\sdocs\sat\nthe\smoment.\s\n--\s09/15/1999\shobbs\n\nThis\sbug\sis\ssuperceeded\sby\s4836.\n\n-\seric\n\s\n--\s04/27/2000\sericm
J foundin obsolete:\s8.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 46.\sTraces
J title Tcl_SetVar2Ex()\sdoes\snot\screate\snew\snamespace\s(bad\sdocs)
J type Bug
K 217863ffffffffffffffffffffffffffffffffff
U nobody
Z 25c848c75962c0185534c89b09a8510f