Skip to content
Tcl Source Code History Of Ticket 959052ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 959052ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 959052ffffffffffffffffffffffffffffffffff

  1. Ticket change [012202d056] (rid 119426) by msofer on 2004-05-23 20:10:04:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "msofer"
    9. subsystem initialized to: "07. Variables"
    10. title initialized to: "variable name resolution and unset vars"
    11. type initialized to: "Bug"
  2. Ticket change [bf008191f1] (rid 102185) by msofer on 2004-05-24 05:48:50:

    1. assignee changed to: "hobbs"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Attaching a patch, already committed to HEAD. Please review
      for itcl compat. Are there any other known users of
      Tcl_FindNamespaceVar that may rely on the weird lookup
      semantics?
      
      Second Q: should this be backported to 8.4? 8.3?
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. username: "msofer"
  3. Add attachment "959052.patch" [92b2bba1c6] (rid 120815) by msofer on 2004-05-24 05:48:50.

  4. Ticket change [b4cb71f3a3] (rid 125103) by msofer on 2004-05-24 05:48:51:

    1. icomment:
      
      
      File Added - 88161: 959052.patch
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [0399a95e6e] (rid 119855) by msofer on 2004-05-24 08:37:54:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Note that the final judge of which variable should be set is 
      [namespace which -variable], according to namespace.n 
      This is not changed by the patch. 
      
      The patch insures that 
         set name [namespace which -variable x]
         info vars $name
      always returns $name. Previously:
      
        % trace add variable x write {;#}
        % namespace eval a {
                set name [namespace which -variable x]
            }
        ::x
        %  info vars ::x
      
      
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  6. Ticket change [a24b1a5e9d] (rid 109868) by msofer on 2004-05-26 02:53:45:

    1. closedate changed to: "2004-05-25T19:53:45"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      As many (?) scripts and apps (at least, AlphaTk: see bug
      #959786) rely on the details of the definition of
      "existence" for variable name resolution, they break with
      any change in these details.
      
      Any action on this bug will have to wait. The patch was
      reverted from HEAD, and should not be applied in the 8.4
      line either.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Postponed"
    7. status changed to: "Closed"
    8. username: "msofer"
  7. Ticket change [bd54c5f13b] (rid 101887) by msofer on 2004-08-23 08:51:12:

    1. status changed to: "Open"
  8. Ticket change [5ab6fdbeb3] (rid 118191) by hobbs on 2004-11-18 00:52:31:

    1. assignee changed to: "msofer"
  9. Ticket change [b677afa76a] (rid 125428) by dkf on 2005-01-07 17:26:57:

    1. foundin changed to: "obsolete: 8.5a3"
  10. Ticket change [dbeda0f952] (rid 108048) by msofer on 2006-10-02 04:48:53:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Another surprise:
      % namespace eval a set x
      can't read "x": no such variable
      % set x 1
      1
      % namespace eval a set x
      1
      % upvar 0 ::a::x y
      % namespace eval a set x
      can't read "x": no such variable
      %
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"