Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 883b4b3edceb1d1dd08e44a1bd23bb0a25c11159
Ticket: 1585064fffffffffffffffffffffffffffffffff
Namespace import behaves strange when redefining commands
User & Date: mpc_janssen on 2006-10-26 12:49:32
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When executing the following script:
    
    namespace eval debug {
     namespace export breakpoint
     proc on {} {proc breakpoint {{s {}}} {puts on}}
      proc off {} {proc breakpoint args {}}
      off
     }
    
    namespace import ::debug::*
    
    ::debug::on
    breakpoint
    
    No ouptut is shown while I expected on to be shown.
    
    when forcing reimport of the breakpoint proc with
    
    namespace import -force ::debug::*
    
    on is displayed for subsequent calls to breakpoint
    
    also when using the FQN ::debug::breakpoint on is
    displayed.
    
    When the off proc is defined as:
    
    proc off {} {proc breakpoint args {return}}
    
    It works as expected.
    
    
    
  4. foundin changed to: "obsolete: 8.5a5"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "mpc_janssen"
  10. subsystem changed to: "21. [namespace]"
  11. title changed to:
    Namespace import behaves strange when redefining commands
    
  12. type changed to: "Bug"