Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9094799196cb3d13cdb563586fb4c2c9b61cb310
Ticket: 218622ffffffffffffffffffffffffffffffffff
'info procs' behavior inconsisten with other info methods
User & Date: nobody on 2000-10-26 01:03:15
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1488 Bug
    Version: 8.0.4
    SubmitDate: '1999-03-11'
    LastModified: '2000-01-11'
    Severity: LOW
    Status: Released
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 667
    OS: Solaris
    Machine: Other
    FixedDate: '2000-01-11'
    FixedInVersion: 8.3b2
    ClosedDate: '2000-10-25'
    
    
    Name:
    Jeffrey Hobbs
    
    ReproducibleScript:
        ## Taken from tkcon console output
        (jhobbs) 1 % namespace eval ::foo {
        set var 1
        proc bar {a {b 0}} { return "$a $b" }
        }
        (jhobbs) 2 % info procs ::foo::*
        (jhobbs) 3 % info vars ::foo::*
        ::foo::var
        (jhobbs) 4 % namespace eval ::foo { info procs }
        bar
        (jhobbs) 5 % info args ::foo::bar
        a b
        (jhobbs) 6 % info args string
        "string" isn't a procedure
        (jhobbs) 7 % info commands ::foo::*
        ::foo::bar
    
    ObservedBehavior:
    The above script shows the abherrent behavior of info procs.  This has
    been
    discussed several times on c.l.tcl, but this shows how alone info procs
    is in working the way it does.  Only when run in the namespace eval does
    one get info procs to return data.
    
    DesiredBehavior:
    I expect info procs to parallel info vars in returning procs even when a
    namespace is specified.  One can see that also info args (and other info
    commands on procs) operate properly by recognizing the proc in a
    namespace.
    Line 4 shows the work-around, but this can be quite a bummer to deal with
    all the time.  Having just info commands work properly isn't sufficient
    in easily identifying whether the "command" is actually a procedure.
    
    
    8.3b2 solves this. 
    -- 01/11/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:
    'info procs' behavior inconsisten with other info methods
    
  11. type changed to: "Bug"