Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cd971a756934e35c86db861d77af4267394b0650
Ticket: 1017299fffffffffffffffffffffffffffffffff
[namespace import] loop not prevented
User & Date: dgp on 2004-08-27 21:27:31
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    miguel points out that would
    change the following script
    behavior:
    
    %  namespace eval a {namespace export *; proc a {} {puts hi}}
    %  namespace eval b {namespace export *;namespace import ::a::a}
    %  namespace eval c {namespace import ::b::a}
    % c::a
    hi
    % namespace eval b {proc a {} {puts lo}}
    % c::a
    lo
    % b::a
    lo
    % a::a
    hi
    
    From my perspective, that code just
    demonstrates that we have an
    "inconsistent [namespace import] model"
    (See Bug 565823).  Do we implement
    snapshot semantics or not?
    
    But, it's probably unchangeable at
    this point. 
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"