Overview
| Artifact ID: | 4ce100e3efb58442fb588743072503868f0d19a3 |
|---|---|
| Ticket: | 219184ffffffffffffffffffffffffffffffffff
Tcl bytecode interpreter catches errors at inappropriate tim |
| User & Date: | nobody on 2000-10-26 05:03:05 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 2248 Bug Version: 8.0.5 SubmitDate: '1999-06-16' LastModified: '2000-05-19' Severity: LOW Status: Assigned Submitter: techsupp ChangedBy: hobbs RelatedBugIDs: 1149 OS: Linux-Red Hat OSVersion: Red Hat 5.1 Machine: Other FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Extensions: None CustomShell: None ReproducibleScript: $ tclsh % catch [error foo] 1 % set catch catch; $catch [error foo] foo ObservedBehavior: 'catch [error foo]' should not have caught the error, since that error was raised before catch would have been invoked. Disabling the bytecode compiler by calculating the command name at run time gives correct behaviour: the error propagates to the top level. DesiredBehavior: The bytecode-compiled version of the code should behave in the same way as the non-bytecode-compiled version. Same behavior exists still in 8.2.0. -- 08/21/1999 hobbs if (cmdTokenPtr->type != TCL_TOKEN_SIMPLE_WORD) { return TCL_OUT_LINE_COMPILE; } in TclCompileCatchCmd would fix this, but ruin other opts. -- 12/03/1999 hobbs Make sure to put the catch in a proc to see the effect when compiled. -- 05/19/2000 hobbs - foundin changed to: "final: 8.0.5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "10. Objects"
- title changed to:
Tcl bytecode interpreter catches errors at inappropriate tim
- type changed to: "Bug"