Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a2d7919bb60934b534b5c42ad2ec790b4945acf0
Ticket: 218137ffffffffffffffffffffffffffffffffff
namespace eval myspace { info commands }
User & Date: nobody on 2000-10-26 00:53:36
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2060 Bug
    Version: 8.0.4
    SubmitDate: '1999-05-13'
    LastModified: '2000-05-23'
    Severity: MED
    Status: Closed
    Submitter: pat
    ChangedBy: hobbs
    OS: Solaris
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-05-23'
    
    
    Name:
    Spiros Boucouris
    
    ReproducibleScript:
    Add a command (implemented in C) to a namespace.
        
        The only way to see the command listed is
        
        info commands  myspace::*
        
        namespace  eval  myspace  { info commands }
        
        will only list the commands from the global namespace.
    
    DesiredBehavior:
    namespace eval  myspace  { info commands }
        
        should also report the commands defined in myspace, not just the ones in
        the global namespace
    
    
    
    info commands is doc'ed to return commands in the current
    namespace, but return commands in both the current and the
    global namespace.  [info procs] is doc'ed the same way, and
    was fixed in 8.3 to just return the namespace commands.
    This should be corrected, one way or the other, in 8.4. 
    -- 04/03/2000 hobbs
    
    I find this not to be the case actually, see:
    
    % info commands itcl::*
    ::itcl::configbody ::itcl::find ::itcl::class ::itcl::scope ::itcl::body ::itcl::local ::itcl::code ::itcl::delete ::itcl::ensemble
    % namespace eval itcl {info commands}
    configbody find class scope body local code delete ensemble tell socket subst open eof pwd tclMacPkgSearch glob list exec pid auto_load_index time unknown eval 
    
    You'll see that itcl::class is seen either way (a C-based command). 
    -- 05/23/2000 hobbs
    
    
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "81. Bundled Packages"
  10. title changed to: "namespace eval myspace { info commands }"
  11. type changed to: "Bug"