Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 15b1947a29fe5465d661e19f67291043e11445e4
Ticket: 3017879fffffffffffffffffffffffffffffffff
proc emptyness is cached too aggressively
User & Date: msofer on 2010-06-18 12:45:06
Changes

  1. icomment:
    Not yet studied the bug description in full. Just to note that tcllib's control::assert may be doing things the way you need? http://tcllib.sourceforge.net/doc/control.html
    
    As for "a solution propagating command redefinition down to each importing namespace", this is not a feature of imported commands. The import refers to the original command at the time it is imported. If you want to resolve the command by name at the time of command invocation, either [namespace path] or [interp alias] are the way to go.
    
      % namespace eval foo {namespace export *}
      % proc foo::a {} {puts a0}
      % namespace import foo::a
      % a
      a0
      % rename foo::a foo::b
      % a
      a0
      % namespace origin a
      ::foo::b
      % rename a x
      % x
      a0
      % namespace origin x
      ::foo::b
      % proc foo::a {} {puts a1}
      % namespace import foo::a
      % a
      a1
      % rename a y
      % y
      a1
      % x
      a0
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"