Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 18f0c62839de118cd0d3399959889297d0f22562
Ticket: 2898722fffffffffffffffffffffffffffffffff
[namespace path] + command resolution inconsistencies
User & Date: mpc_janssen on 2009-11-17 05:47:24
Changes

  1. icomment:
    For completeness (and to not require a tcltest script download)
    Seems likely that something with caching (implies epoch??) is at fault here. The following simple interactive session demonstrates this:
    
     % namespace eval ::fu { proc mycmd {} { puts "mycmd" }}
    % namespace eval ::fu::bar { namespace path ::fu; mycmd }
    mycmd
    % namespace eval ::fu::bar { proc mycmd {} { puts "fubar mycmd"}; mycmd }
    mycmd
    % namespace eval ::fu::bar { mycmd}
    fubar mycmd
    % namespace eval ::fu::bar { proc mycmd {} { puts "fubar mycmd"}; mycmd }
    mycmd
    % namespace eval ::fu::bar { mycmd}
    fubar mycmd
    % namespace eval ::fu::bar { proc mycmd {} { puts "fubar mycmd"}; mycmd }
    mycmd
    
    It seems that calling mycmd when it is still only defined in namespace ::fu is a necessary prerequisite to see this behaviour.
    
    
  2. login: "mpc_janssen"
  3. mimetype: "text/plain"
  4. username: "mpc_janssen"