Skip to content
Tcl Source Code Artifact [b785af33c1]
Login

Artifact [b785af33c1]

Artifact b785af33c1304ffdf8878c7b039ad3871e7f29ef:

Ticket change [b785af33c1] - Ticket [2969488fffffffff|2969488fff] <i>trace variable doesn&#39;t fire if you upvar to an array element</i> status still Open with 4 other changes by ferrieux on 2010-03-13 07:15:08.
D 2010-03-13T07:15:08
J icomment Attaching\sa\spatch\sdoing\s99%\sof\sthe\sjob\s:/\n(The\s1%\sis\sfailing\stests\sin\strace-16.*\sby\sgiving\sa\smisleading\serror\smessage\s"no\ssuch\svariable"\svs\s"no\ssuch\selement\sin\sarray".\sWill\slook\sinto\sthis\slater.)\n\nMethod:\n\s(1)\sEnrich\sTclVarHashTable\swith\san\sarrayPtr\sfield,\sbacklinking\sto\sthe\sparent\sarray\swhen\sit\sexists,\sNULL\sotherwise.\n\s(2)\sEnrich\sthe\svarious\sTclIsVarDirectXXXable\swith\sproper\stests\son\sthe\sparent\sarray\n\s(3)\sAt\sthe\sbeginning\sof\sthe\sTclPtr(Set,Get,Incr,Unset)\sfunctions,\swhen\sthe\sarrayPtr\spassed\sis\sNULL,\scheck\sagain,\sand\soverwrite\sit\swith\sthe\sparent\sarray\sfrom\sthe\stable.\n\nAs\sa\sresult,\sarray\selements\snow\sknow\stheir\sparent,\s*and*\sthe\ssuperficial\sarrayPtr\sestimated\sfrom\sthe\svar's\ssyntax\s(an\supvar\smay\slook\slike\sa\sscalar)\sis\sno\slonger\s\senough\sto\shide\sthe\struth.\n\nDoc\supdate\sis\sjust\sthe\sremoval\sof\sthat\sugly\sparagraph\sdescribing\sthe\sold\sbehavior.\n\nTests\sneed\sa\sspecific\scase\schecking\sfor\sthis\s(apparently\sno\sone\sbothered\sto\stest\sthat\sugly\sdocumented\sbehavior\s!)\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 2969488fffffffffffffffffffffffffffffffff
U ferrieux
Z 255bdc679cfc74ca20225707a3c1275a