Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-07-11
06:10 • Ticket [2015360fff] untested Tcl_ResetResult() calls status still Open with ... artifact: 56046844ce user: msofer
2008-07-10
20:34 • New ticket [2015360fff]. artifact: 010c1d3383 user: dgp

untested Tcl_ResetResult() calls

Open2015360fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 18 years ago
Descriptionplain2008-07-10 20:34:07
line 2166 of Revision 1.145 of
tclCompCmds.c is a call to
Tcl_ResetResult().  Commenting
is out leads to no test suite
failures.

Same for line 1160 of Revision
1.149 of tclCompile.c.

Either that means these calls
are unnecessary and ought to be
removed, or else the need for them
is untested by the test suite.
msoferplain2008-07-11 06:10:56
Logged In: YES 
user_id=148712
Originator: NO

They do seem unnecessary:
 * Scripts are only compiled on demand, and the demand only arises in the scope of a command invocation 
 * Tcl guarantees a clean result state on command invocation
 * the state can only be unclean if any library function that writes the interp's result has been called after the command invocation

So the question is: does any of the function compilers call such a function?
Log in (anonymous is fine) to add a comment.