Artifacts Associated With Ticket 218622
Ticket change [9094799196] (rid 120473) by nobody on 2000-10-26 01:03:15:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "81. Bundled Packages"
- title initialized to:
'info procs' behavior inconsisten with other info methods
- type initialized to: "Bug"
Ticket change [8e30ea1773] (rid 120067) by welch on 2000-10-26 08:25:11:
- closedate changed to: "2000-10-26T01:25:11"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [0404763503] (rid 119920) by dgp on 2001-04-05 07:39:02:
- closedate changed to: "2001-04-05T00:39:02"
- closer changed to: "dgp"
- subsystem changed to: "17. Commands I-L"