Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d4a9836dd22d8faf580697b2aa465c7d52ce42c9
Ticket: 604226ffffffffffffffffffffffffffffffffff
[variable] should always create a link
User & Date: dgp on 2002-09-04 06:03:54
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    If this is not a bug, it's definitely a place to
    clarify the docs.  Related behavior:
    
    % namespace eval a variable x 1
    % namespace eval b variable ::a::x
    % puts $b::x
    can't read "b::x": no such variable
    % namespace eval b {
        variable ::a::x
        puts $x
    }
    can't read "x": no such variable
    % proc b::foo {} {
        variable ::a::x
        puts $x
    }
    % b::foo
    1
    
    Different behavior of [variable] within
    a proc compared to within a [namespace eval]
    needs either correction or more explicit documentation.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"