Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e4766c0eb580ccf9c489a6ebafdec7fcd13b2fce
Ticket: 633204ffffffffffffffffffffffffffffffffff
catch { return foo } breaks inside proc
User & Date: dgp on 2002-12-12 05:38:59
Changes

  1. assignee changed to: "msofer"
  2. icomment:
    Logged In: YES 
    user_id=80530
    
    This must be a bug in the
    byte-compiling of [catch].
    
    Compare with:
    
    % proc foo {} {
    set catch catch
    $catch {return foo}
    }
    % foo
    2
    
    and
    
    % proc bar {} {
    set script {return foo}
    catch $script
    }
    % bar
    2
    
    Only the literal "catch {return foo}"
    is causing trouble, indicating some
    mistaken "optimization" in the
    bytecode.
    
    
  3. login: "dgp"
  4. mimetype: "text/plain"
  5. username: "dgp"