Skip to content
Tcl Source Code Artifact [98aecc9ff5]
Login

Artifact [98aecc9ff5]

Artifact 98aecc9ff5ffc17513d24031cc1f89abf253dcac:

Ticket change [98aecc9ff5] - Ticket [3363556fffffffff|3363556fff] <i>Tcl_SetObjResult can&#39;t handle NULL, despite documentation</i> status still Open with 4 other changes by msofer on 2011-07-12 19:52:02.
D 2011-07-12T19:52:02
J icomment I\scould\sonly\sfind\san\sinline\scomment\s(in\sthe\sfunction\sargument\slist)\sstating\sthat\sNULL\sis\sconverted\sto\sempty,\sbut\sit\sdoes\snot\scorrespond\sexactly\sto\syour\squote.\sThat\scomment\sis\sindeed\sNOT\sin\sagreement\swith\sthe\scode,\sone\sof\sthe\stwo\sshould\s(and\swill)\sbe\sfixed.\n\nI\scouldn't\sfind\sany\sdocs\smentioning\sTcl_SetObjResult's\sability\sto\shandle\sa\sNULL\sobjPtr.\sThe\smanual\spage\sfor\sTcl_SetObjResult\sdescribes\spretty\smuch\swhat\sthe\scode\sis\sdoing:\s"Tcl_SetObjResult\sarranges\sfor\sobjPtr\sto\sbe\sthe\sresult\sfor\sinterp,\sreplacing\sany\sexisting\sresult.\sThe\sresult\sis\sleft\spointing\sto\sthe\sobject\sreferenced\sby\sobjPtr.\sobjPtr's\sreference\scount\sis\sincremented\ssince\sthere\sis\snow\sa\snew\sreference\sto\sit\sfrom\sinterp.\sThe\sreference\scount\sfor\sany\sold\sresult\sobject\sis\sdecremented\sand\sthe\sold\sresult\sobject\sis\sfreed\sif\sno\sreferences\sto\sit\sremain."\sThis\spart\sof\sthe\sman\spage\sSetResult.3\sseems\sto\shave\sbeen\sunchanged\ssince\s1998-03-26\n\nWhich\sdocumentation\sare\syou\squoting\sfrom?\s\n
J login msofer
J mimetype text/plain
J username msofer
K 3363556fffffffffffffffffffffffffffffffff
U msofer
Z 2a5dbba6738b8301366c990d23dda9dc