Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1d357c0081e34a6451e428251f6c18fc72e60e13
Ticket: 1280497fffffffffffffffffffffffffffffffff
set a variable in namespace set global variable
User & Date: msofer on 2005-09-02 20:46:07
Changes

  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"