Skip to content
Tcl Source Code Artifact [f503b4a199]
Login

Artifact [f503b4a199]

Artifact f503b4a1993f3c5550e00e0193bb0a166887a3bd2f0f2fb25ecd4d3d0873c2e6:

Ticket change [f503b4a199] - New ticket [656fe3c8163aea1b|656fe3c816] <i>Tcl_DictObjPut() - poor usability</i>. by dgp on 2019-07-25 16:29:57.
D 2019-07-25T16:29:57.422
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Tcl_DictObjPut(...,\sdictPtr,\skeyPtr,\svalPtr);\r\n\r\nSometimes\sthe\sdict\swill\sstore\sa\sref\sto\skeyPtr\sand\sincrement\sits\srefcount,\r\neffectively\staking\sresponsibility\sfor\slater\srelease,\sbut\snot\salways.\sNotably,\r\nif\san\sequal\skey\sis\salready\sin\sthe\sdict,\sthe\sold\sone\sis\skept\sin\spreference\sto\r\nswapping\sthe\snew\sone\sin.\r\n\r\nThis\splaces\smore\sburden\son\srefcounting\son\sthe\scaller,\sand\smakes\scalls\slike\r\n\r\nTcl_DictObjPut(...,\sdictPtr,\sTcl_NewStringObj(...),\svalPtr)\r\n\r\nunsafe\sto\suse\s--\seven\sthough\smany\ssuch\sexamples\sare\sin\sTcl's\sown\ssource\scode.
J is_private 0
J login dgp
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter dgp
J subsystem 15.\sDict\sObject
J title Tcl_DictObjPut()\s-\spoor\susability
J type Bug
K 656fe3c8163aea1bbf10552962fcc79cb49c5bad
U dgp
Z ad2c9bd9c9390e7ae76bf61d1afe353d