Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 012202d056a6563a1f48a3c871155d1c53ccfac7
Ticket: 959052ffffffffffffffffffffffffffffffffff
variable name resolution and unset vars
User & Date: msofer on 2004-05-23 20:10:04
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Name resolution for variablesin namespaces sometimes
    finds variables that "do not exist" according to [info
    vars].
    
      % namespace eval a upvar x q
      % info vars x
      % namespace eval b set x 1
      1
      % set x
      1
     
      % trace add variable x write {;#}
      % info vars x
      % namespace eval a set x 1
      1
      % set x
      1
    
      % namespace eval a {trace add variable x write {;#}}
      % set x 0
      0
      % info vars a::x
      % namespace eval a set x 1
      1
      % set x
      0
      % info vars a::x
      ::a::x
    
    The variables which are found contrary to [info vars]
    satisfy:
     - they have an entry in their namespace's hash table
     - they are unset, ie (varPtr->flags & VAR_UNDEFINED)
     - they are not namespace variables, ie 
           !(varPtr->flags & VAR_NAMESPACE_VAR)
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "07. Variables"
  10. title changed to: "variable name resolution and unset vars"
  11. type changed to: "Bug"