Overview
| Artifact ID: | 6e72d60238c9f5ea34f9d7dbf15ad0ce550f0e5d |
|---|---|
| Ticket: | 219181ffffffffffffffffffffffffffffffffff
[break] at level #0: No error message |
| User & Date: | dkf on 2001-02-26 18:44:41 |
Changes
- icomment:
Logged In: YES user_id=79902 Hmm. The problem is not that the [break] isn't having an effect, but rather that no error message is being generated. See the following session: $ cat test.tcl # FILE: test.tcl puts stderr [info patchlevel] break puts stderr "FELL THROUGH" $ tclsh8.3 test.tcl 8.3.2 $ tclsh8.0 test.tcl 8.0.4 invoked "break" outside of a loop while executing "# FILE: test.tcl puts stderr [info patchlevel] break puts stderr "FELL THROUGH" " (file "test.tcl" line 1) $ tclsh8.3 % source test.tcl 8.3.2 invoked "break" outside of a loop Note first that neither 8.0.4 or 8.3.2 fell through to the rest of the script, so the break itself must have worked. Second, note that there is an extra blank line generated after the printing of the patchlevel under 8.3.2, so something is coming of the break. It looks to me like this is actually either a problem with Tcl_EvalFile or with the default error handler in 8.3.2, and this problem is not exercised when running interactively... - login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "45. Parsing and Eval"
- username: "dkf"