Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fdf15a62008452637b5e82f35a9cd695ef22976d
Ticket: 218476ffffffffffffffffffffffffffffffffff
compiled foreach does not set non-local variables
User & Date: nobody on 2000-10-26 01:01:02
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 665 Bug
    Version: 8.0p2
    SubmitDate: '1998-06-17'
    LastModified: '1999-04-16'
    Severity: CRIT
    Status: Released
    Submitter: stanton
    ChangedBy: stanton
    OS: All
    OSVersion: NA
    Machine: NA
    FixedDate: '1999-04-16'
    FixedInVersion: 8.1b3
    ClosedDate: '2000-10-25'
    
    
    The following script behaves differently inside a procedure:
    
    foreach {::foo::a} {1 2} {}
    
    At the global scope, it correctly sets the namespace variable.  In a procedure, it creates a local variable named ::foo::a.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.0p2"
  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: "compiled foreach does not set non-local variables"
  11. type changed to: "Bug"