| Ticket UUID: | 2015360 | ||
| Title: | untested Tcl_ResetResult() calls | ||
| Type: | Bug | Created on: | 2008-07-10 20:34:07 |
| Submitter: | dgp | Assigned to: | msofer |
| Subsystem: | 47. Bytecode Compiler | Severity: | |
| Priority: | 5 Medium | Last modified: | 2008-07-11 06:10:56 |
| Status: | Open | Closed by: | |
| Resolution: | None | Closed on: | |
| Version: | obsolete: 8.6a1 | ||
| Description: | ||||
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. | ||||
| User Comments: | ||||
msofer added on 2008-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? | ||||
