D 2001-12-02T07:39:39
J icomment \n\nFile\sAdded\s-\s14049:\sarrayGet.patch\n\nLogged\sIn:\sYES\s\nuser_id=148712\n\nIt\sis\sdifficult\sto\sdefine\swhat\sthe\scorrect\sbehaviour\sof\n[array\sget]\nshould\sbe\swhen\sthere\sare\sread\straces\sthat\smodify\sthe\sarray\s\nstructure.\s\n\nIn\sdiscussions\son\sthe\sTcl'ers\sChat\swith\sKevin\sKenny\sand\s\nDon\sPorter\swe\sagreed\sthat\sa\s(the\sonly\s?)\sreasonable\nbehaviour\s\nis\sgiven\sby\n\n\sproc\sarray-get\s{\saName\s}\s{\n\s\s\s\s\sset\sresult\s[list]\n\s\s\s\s\supvar\s1\s$aName\sarray\n\s\s\s\s\sforeach\ss\s[array\snames\sarray]\s{\n\s\s\s\s\s\s\s\s\sif\s{\s[info\sexists\sarray($s)]\s}\s{\s\n\s\s\s\s\s#\sbecause\sa\strace\scould\shave\sdeleted\sit\s\n\s\s\s\s\s\s\s\s\s\s\s\s\slappend\sresult\s$s\s$array($s)\n\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s}\n\s\s\s\s\sreturn\s$result\n\s}\n\nThe\senclosed\spatch\simplements\sthis\sbehaviour\sand\sadds\sthree\ntests\s\nfor\sit.\sThese\stests\scause\sillegal\smemory\sbehaviour\swithout\nthe\spatch\s\nto\stclVar.c\s-\san\saccess\sto\sa\spreviously\sdisposed\sTcl_Obj\sis\ndetected\s\nby\sTCL_MEM_DEBUG.\s\n\n
J login msofer
J mimetype text/plain
J username msofer
K 449893ffffffffffffffffffffffffffffffffff
U msofer
Z 308bf3a3916ab41d561a19299966beae