.
D 2003-09-26T13:26:28
J assignee nijtmans
J cmimetype text/plain
J comment Tcl_GetIndexFromObjStruct\sdoesn't\sreset\sprior\sresult\ninformation\sin\sthe\sinterpreter\swhen\sgenerating\sits\nso-called\s(in\sthe\scomments)\s"fancy\serror\smessage".\s\nThis\smeans\sthat\sif\syou've\sdone\ssomething\sthat\shas\sset\sa\nresult\sbefore\scalling\sit\sor\sTcl_GetIndexFromObj\n(including\scalling\sTcl_GetIndexFromObj\smultiple\stimes\nwith\smultiple\serrors)\syou\sget\sbogus\serror\smessages.\n\nIn\sthe\sparticular\scase\sI\snoticed\sthis,\sI\shave\san\sObjCmd\nthat\sseparates\sout\scertain\soption\sarguments\sthat\sit\nwants\sand\sdelegates\sthe\sremaining\soptions\sto\sanother\nObjCmd.\s\sHere\sI\suse\sthe\sTCL_ERROR\svs.\sTCL_OK\sresult\sto\ndetermine\swhether\san\soption\swas\smatched\swithin\sthe\sset\nthat\sthe\sfirst\sfunction\swants.\s\sIt's\sa\slittle\smore\nmaintainable\sthis\sway\s(though\sperhaps\sslower\swith\sall\nthose\serror\smessages\sbeing\sgenerated)\sto\shave\sthe\sfirst\nfunction\sonly\sknow\sabout\sthe\ssmall\ssubset\sof\soptions\nthat\sit\swants.\s\sAt\sany\srate,\sI\snoticed\sthat\swhen\nfeeding\sthe\scommand\sa\sbunch\sof\soptions\swhere\sone\swasn't\nrecognized\sby\seither\sgenerated\san\serror\smessage\swith\nrepeated\serror\smessages\sand\sother\sresult\sbits.\n\nSee\sbelow\sfor\ssuggested\spatch.
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter muonics
J subsystem 13.\sIndex\sObject
J title Tcl_GetIndexFromObjStruct\sdoesn't\sreset\sresult\sbefore\serror
J type Bug
K 813056ffffffffffffffffffffffffffffffffff
U muonics
Z bfd5f63e8aa5ba7a7d691c9ac16a46aa