Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7b153192cef698c1dae49ba5d430a5cd88fb2f3a
Ticket: 1247135fffffffffffffffffffffffffffffffff
info globals works wrong inside proc
User & Date: nobody on 2005-07-28 21:48:56
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Name: Lawrence D'Oliveiro
    Contact e-mail: [email protected]
    
    Systems tried: SuSE Linux 9.3 x86-64, tcl 8.4.9-7 vs SuSE 9.1 
    x86 (32-bit), tcl 8.4.6-26
    
    On the system running 8.4.9, "info globals" is returning a 
    nonempty result for an undefined global, when it should be 
    returning an empty result. Furthermore, it only does this inside a 
    proc.
    
    For example, try this command sequence from the tclsh command 
    prompt:
    
       proc Try {} {global Glob; info globals Glob}
       Try
    
    Assuming that there is no global variable named "Glob", this 
    returns an empty result on 8.4.6, but it returns "Glob" on 8.4.9.
    
    If you try the same commands as the procedure body, entered 
    directly:
    
       global Glob
       info globals Glob
    
    This sequence returns an empty result on both 8.4.6 and 8.4.9.
    
  4. foundin changed to: "obsolete: 8.4.9"
  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: "17. Commands I-L"
  10. title changed to: "info globals works wrong inside proc"
  11. type changed to: "Bug"