Skip to content
Tcl Source Code Artifact [6d7ed4afad]
Login

Artifact [6d7ed4afad]

Artifact 6d7ed4afadeed161aac265292a13d6f358ccd8e3:

Ticket change [6d7ed4afad] - Ticket [2811381fffffffff|2811381fff] <i>unexpected &#39;result&#39; in trace execution leave</i> status still Open with 6 other changes by anonymous on 2014-09-23 11:07:39.
D 2014-09-23T11:07:39.424
J closer nobody
J comment trace\smanpage\ssays:\r\nFor\sleave\sand\sleavestep\soperations:\scommand\scommand-string\scode\sresult\sop\r\n[...]\sresult\s[gives]\sthe\sresult\sstring.\r\nWhen\smultiple\straces\sare\sset\son\sname,\sthen\s[...]\sfor\sleave\sand\sleavestep\soperations,\sthe\straced\scommands\sare\sinvoked\sin\sthe\soriginal\sorder\sof\screation.\r\n\r\nHowever,\sit\sdoesn't\ssay\sthat\sthe\s'result'\sis\staken\sfrom\soriginal\scommand\sonly\sfor\sfirst\strace.\sEach\sfollowing\strace\stakes\s'result'\sfrom\sprevious\straced\scommand.\sThis\sis\snot\scompletely\sunwanted,\sbut\srather\sunexpected.\sFor\smultiple\straces,\seach\sof\sthem\shas\sto\sreturn\sit's\s'result'\sargument,\sin\sother\scase\snext\strace\smight\sfail.\sManual\sshould\sbe\sclearer\son\sthat.\r\n\r\nExample:\r\n%\sproc\straced\s{}\s{return\shello}\r\n%\sproc\strace_1st\s{cmdstr\scode\sresult\sop}\s{puts\s"first:\s$result";\sreturn\sfirst}\r\n%\strace\sadd\sexecution\straced\sleave\strace_1st\r\n%\straced\r\nfirst:\shello\r\nhello\r\n%\sproc\strace_2nd\s{cmdstr\scode\sresult\sop}\s{puts\s"second:\s$result";\sreturn\ssecond}\r\n%\strace\sadd\sexecution\straced\sleave\strace_2nd\r\n%\straced\r\nfirst:\shello\r\nsecond:\sfirst\r\nhello\r\n%
J foundin 8.6.2
J login anonymous
J mimetype text/plain
J severity Minor
K 2811381fffffffffffffffffffffffffffffffff
U anonymous
Z d965266732e881134b5c9cfbad668a07