Skip to content
Tcl Source Code History Of Ticket 1280497fffffffff
Login

History Of Ticket 1280497fffffffff

Artifacts Associated With Ticket 1280497fffffffff

  1. Ticket change [1be3bd323c] (rid 123225) by nobody on 2005-09-02 10:24:03:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      GNU/Linux 2.6.8-24.17-default i686 athlon 
      
      patchlevel -- 8.4.11
      
      
      % set data 0
      0
      % namespace eval ::ini { set data 1 }
      1
      % puts $data
      1
      % puts $::ini::data
      can't read "::ini::data": no such variable
      
      
      [email protected]
      
    4. foundin initialized to: "obsolete: 8.4.11"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "21. [namespace]"
    10. title initialized to: "set a variable in namespace set global variable"
    11. type initialized to: "Bug"
  2. Ticket change [a688c87d16] (rid 98616) by dkf on 2005-09-02 19:15:46:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      This is, believe it or not, how variable resolution is
      supposed to work, i.e. it is designed that way. Stupid,
      isn't it?
      
      Altering this would be an RFE, not a bugfix...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [ec433a14a2] (rid 103683) by msofer on 2005-09-02 20:46:06:

    1. status changed to: "Closed"
  4. Ticket change [1d357c0081] (rid 90766) by msofer on 2005-09-02 20:46:07:

    1. closedate changed to: "2005-09-02T13:46:07"
    2. closer changed to: "msofer"
    3. icomment:
      Logged In: YES 
      user_id=148712
      
      Works as documented, see the [namespace] manual page
      (especially the section NAME RESOLUTION):
      http://www.tcl.tk/man/tcl8.4/TclCmd/namespace.htm#M22
      
      FWIW, we all seem to agree that this rule for variable name
      resolution is crazy. Changing this is very delicate, for
      backwards compatibility reasons. Let's hope it happens for
      Tcl9.0
      
      The way out is to "declare" namespace variables using the
      [variable] command.
      
      For some other related pitfalls, see bug #959052.
      
      
    4. login: "msofer"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. username: "msofer"