Skip to content
Tcl Source Code Artifact [f8f70f9b47]
Login

Artifact [f8f70f9b47]

Artifact f8f70f9b47e1305c4ec46254c4a0dd5de867f074:

Ticket change [f8f70f9b47] - Ticket [3084489fffffffff|3084489fff] <i>Serious issue: Tcl_DuplicateObj isn&#39;t making a copy?</i> status still Pending with 4 other changes by ferrieux on 2010-10-10 20:10:21.
D 2010-10-10T20:10:21
J icomment Indeed\sthat's\san\smk\sbug,\sbut\swe\shave\sto\sadmit\sthat\sthe\sTcl\score\sdoes\snasty\stricks\swith\slists.\sIndeed,\sthe\sList\sinternal\srepr\shas\sits\sown\slevel\sof\srefcounting,\sand\sthe\sdupProc\sof\sthe\sList\stype\suses\sthis\sto\sdo\sas\slittle\swork\sas\sreasonable:\sit\sonly\sshares\sthe\sinternal\srep,\supping\sthe\srefcount\s!\sA\ssecondary\sconsequence\sis\sthat\s(!Tcl_IsShared)\sdoes\snot\sallow\sto\smodify\sin\splace;\sthe\sdeeper\stest\son\slistRepPtr->refCount\sis\sneeded...\n\nAs\sa\sresult,\sall\sfunctions\sthat\sdo\scopy-on-write\son\slists\s*must*\suse\smore\sexplicit\sduplication\sat\sthe\sdeeper\slevel\sof\sintreps,\seg\sby\scalling\sNewListIntRep.\sNone\sof\sthis\sis\sdiscussed\sin\sListObj."\sby\sthe\sway\s:(\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3084489fffffffffffffffffffffffffffffffff
U ferrieux
Z 302d52e832d3c72d4b825a5eb91492ae