Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f0a6943748a07ff5c1532237fc044891a3a77997
Ticket: 1970629fffffffffffffffffffffffffffffffff
proc should document effect on current namespace
User & Date: dnew on 2008-05-23 15:52:05
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I've noticed that the documentation for [proc] has never clarified that *invoking* a proc defined in a different namespace changes the default namespace. 
    
    namespace eval xyz {
        proc hello {} { puts [namespace current] }
    }
    puts [namespace current]
    xyz::hello
    
    
    Nowhere in the documentation that I could find describes that the two "puts" statements will output different information. (I don't remember why I was looking for this, but it was confusing enough to me that I think it's worth adding a line to the [proc] man page saying that invoking the proc in a namespace changes the current namespace.) 
    
    
    
  4. foundin changed to: "obsolete: 8.5.2"
  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: "dnew"
  10. subsystem changed to: "18. Commands M-Z"
  11. title changed to: "proc should document effect on current namespace"
  12. type changed to: "Bug"