Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1dbc531a4e2b6b455293d4b74f511f1715e01aaa
Ticket: 1671138fffffffffffffffffffffffffffffffff
foreach: empty var list -> inf loop
User & Date: dgp on 2007-02-28 18:58:55
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    This script hangs Tcl:
    
    proc demo {} {
        foreach {} x {}
    }
    demo
    
    By contrast, the non-compiled
    [foreach] does this:
    
    % foreach {} x {}
    foreach varlist is empty
    
    I'm not convinced that an error
    is really the right response, but
    infinite loop is definitely wrong.
    
    
  4. foundin changed to: "obsolete: 8.5a6"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "47. Bytecode Compiler"
  11. title changed to: "foreach: empty var list -> inf loop"
  12. type changed to: "Bug"