Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6510a1a9920b9b50306ec1374a314acd39bb2bef
Ticket: 542142ffffffffffffffffffffffffffffffffff
Bug in bcc'ed [return]
User & Date: msofer on 2002-04-10 19:29:33
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Andreas Kupries reports:
    
    I believe that I have found a bug in the bytecode
    compiler. Below a minimal example of the difference
    between 8.3.4 and 8.4 CVS head of last friday (April 5).
    
    What happens is that the "return" in the catch is not
    catched but stops execution of the surounding procedure.
    
    
    [andreask@pliers pro_ng]$ cat catch_test
    # -*- tcl -*-
    
    proc foo {} {
        set fail [catch {
            return
        }] ; # {}
    
        return 2
    }
    
    puts "foo = [foo]"
    [andreask@pliers pro_ng]$
    [andreask@pliers pro_ng]$ ./install/834/bin/tclsh8.3
    catch_test
    foo = 2
    [andreask@pliers pro_ng]$
    [andreask@pliers pro_ng]$
    [andreask@pliers pro_ng]$ ./install/84cvs/bin/tclsh8.4
    catch_test
    foo =
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "47. Bytecode Compiler"
  10. title changed to: "Bug in bcc'ed [catch]"
  11. type changed to: "Bug"