D 2008-08-05T21:13:43
J icomment Logged\sIn:\sYES\s\nuser_id=80530\nOriginator:\sNO\n\n\nTo\sanswer\sthe\s"all\sears"\srequest\sfirst...\n\nTIP\s90\sincludes\sthe\sfollowing\sexample\nof\show\sto\suse\sTcl\s8.5\sfeatures\sto\nrobustly\sremove\sthe\seffects\sof\scatch\nand\suplevel\sfrom\sthe\sstack\strace\sof\na\s"wrapper"\scommand:\n\nnamespace\seval\scontrol\s{\n\s\s\s\s\sproc\seval\sscript\s{\n\s\s\s\s\s\s\s\s\svariable\sresult\n\s\s\s\s\s\s\s\s\svariable\soptions\n\s\s\s\s\s\s\s\s\sset\scode\s[uplevel\s1\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s[list\s::catch\s$script\s[namespace\swhich\s-variable\sresult]\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s[namespace\swhich\s-variable\soptions]]]\n\s\s\s\s\s\s\s\s\sif\s{$code\s==\s1}\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\sset\sline\s[dict\sget\s$options\s-errorline]\n\s\s\s\s\s\s\s\s\s\s\s\s\sdict\sappend\soptions\s-errorinfo\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s"\\n\s\s\s\s(\\"[lindex\s[info\slevel\s0]\s0]\\"\sbody\sline\s$line)"\n\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\s\sdict\sincr\soptions\s-level\n\s\s\s\s\s\s\s\s\sreturn\s-options\s$options\s$result\n\s\s\s\s\s}\n\s}\n
J login dgp
J mimetype text/plain
J username dgp
K 2038069fffffffffffffffffffffffffffffffff
U dgp
Z 9d8fc38dd38d7b16883ba31c110a7e41