Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4ce100e3efb58442fb588743072503868f0d19a3
Ticket: 219184ffffffffffffffffffffffffffffffffff
Tcl bytecode interpreter catches errors at inappropriate tim
User & Date: nobody on 2000-10-26 05:03:05
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2248 Bug
    Version: 8.0.5
    SubmitDate: '1999-06-16'
    LastModified: '2000-05-19'
    Severity: LOW
    Status: Assigned
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 1149
    OS: Linux-Red Hat
    OSVersion: Red Hat 5.1
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Extensions:
    None
    
    CustomShell:
    None
    
    ReproducibleScript:
    $ tclsh
        % catch [error foo]
        1
        % set catch catch; $catch [error foo]
        foo
    
    ObservedBehavior:
    'catch [error foo]' should not have caught the error, since that
        error was raised before catch would have been invoked.  Disabling
        the bytecode compiler by calculating the command name at run time
        gives correct behaviour: the error propagates to the top level.
    
    DesiredBehavior:
    The bytecode-compiled version of the code should behave in the same
        way as the non-bytecode-compiled version.
    
    
    
    Same behavior exists still in 8.2.0. 
    -- 08/21/1999 hobbs
    
    if (cmdTokenPtr->type != TCL_TOKEN_SIMPLE_WORD) {
        return TCL_OUT_LINE_COMPILE;
    }
    
    in TclCompileCatchCmd would fix this, but ruin other opts. 
    -- 12/03/1999 hobbs
    Make sure to put the catch in a proc to see the effect
    when compiled. 
    -- 05/19/2000 hobbs
    
  4. foundin changed to: "final: 8.0.5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "10. Objects"
  10. title changed to:
    Tcl bytecode interpreter catches errors at inappropriate tim
    
  11. type changed to: "Bug"