Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 85aa0e9d1e0a0eff481f408a75ea19beb6bf1dde
Ticket: fbc88fb645c5b2f47f16cd0e167ef47de081f212
[variable] doesn't follow variable resolution rules
User & Date: dgp on 2017-06-01 17:01:15
Changes

  1. icomment:
    
    Didn't even try to decipher that.
    
    Look at the original ticket. First two commands
    demonstrate that when the current namespace is ::foo,
    the variable name "a::a" can resolve to ::a::a .  It
    does so when ::foo::a::a does not exist and ::a::a
    exists.
    
    The 8th command demonstrates that the same resolution
    happens within a proc body under the same conditions.
    
    The 9th and 10th commands demonstrate that when the
    [variable] command is brought into the picture within a
    proc body where the current namespace is ::foo, and
    when ::foo::a::a does not exist and ::a::a does exist,
    when "a::a" is passed as an argument to [variable] it
    does not get the same resolution treatment.  This is at
    least surprising and sure smells like a bug.  At best it's
    an ugly inconsistency.
    
    Thus the title: [variable] doesn't follow variable resolution rules
    
  2. login: "dgp"
  3. mimetype: "text/plain"