.
D 2001-12-20T23:14:32
J assignee melissachawla
J cmimetype text/plain
J comment \n[saveState]\srecords\sonly\sthe\slist\sof\sprocedure\nnames\sand\svariable\snames\sin\suse,\sbut\snot\stheir\ndefinitions,\sso\sthere's\sreally\sno\s"restore"\ncapability\sin\s[restore].\n\nAlso,\s[restoreState]\sonly\sexamines\s[info\sprocs]\nrather\sthan\s[info\scommands],\sso\snew\scommands\nare\snot\scleaned\sup\sif\sthey\sare\snot\s[proc]s.\n\nAlso,\sthe\shistory\skept\sby\s[saveState]\sis\sonly\none\slevel\sdeep,\sso\sa\ssecond\scall\sto\s[saveState]\ndestroys\sthe\ssaved\sinformation\sfrom\sthe\sfirst\scall.\nThe\ssaved\sstate\sis\sactually\sstored\sin\sa\sTcl\slist\sthat\ncould\seasily\smanage\sa\sstack.\n\nSo,\sthe\swhole\sdeal\slooks\spretty\suseless\sto\sme.\n\nThe\sactual\sbugs:\n\n1)\sThe\sdocumentation\sfor\s[saveState]\sand\s[restoreState]\n\s\s\ssuggests\sthey\sare\suseful\sif\sa\stest\sfile\n\s\s\s"creates\sor\sdeletes\sglobal\svariables\sor\sprocs".\n\s\s\sHowever,\sas\snoted\sabove,\sthere\sis\sno\sreal\srestore\n\s\s\scapability,\sso\sthese\scommands\scan\sdo\snothing\sto\shelp\n\s\s\sout\swhen\sprocs\sor\sglobal\svariables\sare\sdeleted.\n\s\s\sWell,\s[restoreState]\scould\sraise\san\serror,\sbut\sit\n\s\s\sdoesn't.\n\n2)\sThe\sdocumentation\srefers\sto\s"global\svariables",\sbut\n\s\s\sthese\sroutines\soperate\sin\sthe\sframe\sof\stheir\n\s\s\scallers,\sso\sthey\soperate\son\sglobal\svariables\sonly\n\s\s\sif\scalled\sfrom\slevel\s#0.\s\sThey\sshould\suse\n\s\s\s[info\sglobals]\sinstead\sof\s[info\svars],\sto\soperate\n\s\s\sas\sdocumented.\n\nWith\sthe\sfeatures\sof\stcltest\s2.x,\sit\sseems\sto\sme\nthat\seach\stest\sshould\sbe\smanaging\sits\sown\ssetup\sand\ncleanup\swith\sthe\s-setup\sand\s-cleanup\soptions\sanyway.\nI'd\ssuggest\sdeprecating\s[{save|restore}state].
J foundin obsolete:\s8.4a4
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 34.\stcltest\sPackage
J title [{save|restore}State]\suseless/buggy
J type Bug
K 495660ffffffffffffffffffffffffffffffffff
U dgp
Z f188821e63ee4161bdb1f4089711a960