|
2001-04-05
| ||
| 07:20 | • Ticket [218137ffff] namespace eval myspace { info commands } status still C... artifact: d59ffe0738 user: dgp | |
|
2000-10-26
| ||
| 08:15 | • Closed ticket [218137ffff]. artifact: f8724a6dad user: welch | |
| 00:53 | • New ticket [218137ffff]. artifact: a2d7919bb6 user: nobody | |
namespace eval myspace { info commands }
Closed / Fixed218137ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:53:36
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
welch Closed ticket [218137ffff].
[History diff]2000-10-26 08:15:55
dgp Ticket [218137ffff]: 3 changes
[History diff]2001-04-05 07:20:55
Log in (anonymous is fine) to add a comment.