Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 56d3049ca3a6260b516e3cd6976acd4fb05b6128
Ticket: 633204ffffffffffffffffffffffffffffffffff
catch { return foo } breaks inside proc
User & Date: dgp on 2002-12-12 23:13:52
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    Is this bug found in line 343 of
    tclCompCmds.c ?  The
    comment on lines 329-333 says:
    
        /*
         * The "no errors" epilogue code: store the body's
    result into the
         * variable (if any), push "0" (TCL_OK) as the catch's
    "no error"
         * result, and jump around the "error case" code.
         */
    
    but the result of [catch] should not always be TCL_OK.
    It should be whatever the return code of the $script
    argument was.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"