Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6e72d60238c9f5ea34f9d7dbf15ad0ce550f0e5d
Ticket: 219181ffffffffffffffffffffffffffffffffff
[break] at level #0: No error message
User & Date: dkf on 2001-02-26 18:44:41
Changes

  1. 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...
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. subsystem changed to: "45. Parsing and Eval"
  5. username: "dkf"