Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6f624bd8780f0b448bd1aed7301f57324f656f6f
Ticket: 734402ffffffffffffffffffffffffffffffffff
catch fails to catch error
User & Date: msofer on 2003-05-08 09:28:47
Changes

  1. assignee changed to: "msofer"
  2. closedate changed to: "2003-05-08T02:28:47"
  3. closer changed to: "msofer"
  4. icomment:
    Logged In: YES 
    user_id=148712
    
    The described 8.4.2 behaviour is correct: 
       catch [ error "This is an error"] 
    is semantically equivalent to
       set err [ error "This is an error"] 
       catch $err
    as substitution occurs before the [catch] command is 
    invoked; as substitution raises an error, [catch] is never 
    actually invoked.
    
    Did this really catch the error in 8.3? Could you please post 
    the output of
       info patchlevel
    in the corresponding interpreter?
    
    
  5. login: "msofer"
  6. mimetype: "text/plain"
  7. resolution changed to: "Invalid"
  8. status changed to: "Pending"
  9. username: "msofer"