Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 76450ed3d96c34cdb60f9250fa5401a239c8f093
Ticket: 534845ffffffffffffffffffffffffffffffffff
bad variable initialization
User & Date: dgp on 2002-03-25 20:23:00
Changes

  1. assignee changed to: "dgp"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    % set verbose fake
    fake
    % package require tcltest
    2.0.2
    % tcltest::verbose
    can't read "tcltest::verbose": no such variable
    
    The problem is that variable initialization in
    tcltest uses a construct like:
    
    if {![info exists verbose]} {
        variable verbose $default
    ]
    
    Due to the strange resolution of variables, the
    existence of variable ::verbose prevents initialization
    of tcltest::verbose.
    
    There's lots of this in tcltest.  Other packages
    should probably check for it too.
    
  4. foundin changed to: "obsolete: 8.4a5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to: "bad variable initialization"
  11. type changed to: "Bug"