Skip to content
Tcl Source Code History Of Ticket 218622
Login

History Of Ticket 218622

Artifacts Associated With Ticket 218622

  1. Ticket change [9094799196] (rid 120473) by nobody on 2000-10-26 01:03:15:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.0.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "81. Bundled Packages"
    10. title initialized to:
      'info procs' behavior inconsisten with other info methods
      
    11. type initialized to: "Bug"
  2. Ticket change [8e30ea1773] (rid 120067) by welch on 2000-10-26 08:25:11:

    1. closedate changed to: "2000-10-26T01:25:11"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [0404763503] (rid 119920) by dgp on 2001-04-05 07:39:02:

    1. closedate changed to: "2001-04-05T00:39:02"
    2. closer changed to: "dgp"
    3. subsystem changed to: "17. Commands I-L"