Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ac0d86eb5f2096e46bfca084b74493a84566b60b
Ticket: 231259ffffffffffffffffffffffffffffffffff
shadowing byte-compiled commands
User & Date: msofer on 2001-02-06 14:43:08
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    According to the comments for the function TclResetShadowedCmdRefs in generic/tclNamesp.c the following should not happen:
    
       % #define a namespace proc that uses the global command 'set'
       % namespace eval mig {proc test {} {set ::g 0}}; mig::test
       0
      %  
      % #define a namespace proc 'set' that shadows the global command; 
      % #the previously compiled 'test' never notices!
      % namespace eval mig {proc set {a b} {::set a [incr b]}}; mig::test   0
      % #>>>>>>>>>>>
      % #? Shouldn't the namespace epoch have been bumped up by the 
      % #shadowing, ? so that all procs are recompiled?
      % #>>>>>>>>>>>
      %
      % #if I redefine, and hence force recompilation of 'test', it is ok.)   
      % namespace eval mig {proc test {} {set ::g 0}}; mig::test
       1
      
    
  4. foundin changed to: "obsolete: 8.4a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "msofer"
  9. subsystem changed to: "21. [namespace]"
  10. title changed to: "cmdRefEpoch not updated"
  11. type changed to: "Bug"