Skip to content
Tcl Source Code Artifact [e8f12d7eac]
Login

Artifact [e8f12d7eac]

Artifact e8f12d7eac071e188a86ee5f5fae7264ad158cd2:

Ticket change [e8f12d7eac] - New ticket [2811381fffffffff|2811381fff] <i>unexpected &#39;result&#39; in trace execution leave</i>. by quantifier on 2009-06-24 08:48:13.
D 2009-06-24T08:48:13
J assignee dgp
J cmimetype text/plain
J comment trace\smanpage\ssays:\nFor\sleave\sand\sleavestep\soperations:\scommand\scommand-string\scode\sresult\sop\n[...]\sresult\s[gives]\sthe\sresult\sstring.\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.\n\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.\n\nExample:\n%\sproc\straced\s{}\s{return\shello}\n%\sproc\strace_1st\s{cmdstr\scode\sresult\sop}\s{puts\s"first:\s$result";\sreturn\sfirst}\n%\strace\sadd\sexecution\straced\sleave\strace_1st\n%\straced\nfirst:\shello\nhello\n%\sproc\strace_2nd\s{cmdstr\scode\sresult\sop}\s{puts\s"second:\s$result";\sreturn\ssecond}\n%\strace\sadd\sexecution\straced\sleave\strace_2nd\n%\straced\nfirst:\shello\nsecond:\sfirst\nhello\n%
J foundin obsolete:\s8.5.7
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter quantifier
J subsystem 46.\sTraces
J title unexpected\s'result'\sin\strace\sexecution\sleave
J type Bug
K 2811381fffffffffffffffffffffffffffffffff
U quantifier
Z 173ccdd486ce1da3ba8662e80eacf1fd