| Ticket UUID: | 648679 | |||
| Title: | bad namespace usage | |||
| Type: | Bug | Version: | None | |
| Submitter: | dgp | Created on: | 2002-12-04 22:58:37 | |
| Subsystem: | cmdline | Assigned To: | andreas_kupries | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2003-04-11 07:56:25 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2003-04-11 00:56:25 | |||
| Description: |
Many procs in the cmdline package call other procs
in same package in a strange way, something like:
proc cmdline::getoptions {...} {
...
while {[set err [cmdline::getopt ...]]} {...
...
}
Within the body of [cmdline::getoptions] the current
namespace is ::cmdline, so either [getopt] should
be called relying on that context or fully qualified
[::cmdline::getopt] should be called. I strongly prefer
the former myself.
As is, things will go haywire if someone defines
a ::cmdline::cmdline namespace and defines a
[getopt] command in it.
| |||
| User Comments: |
andreas_kupries added on 2003-04-11 07:56:25:
Logged In: YES user_id=75003 Fixed in CVS head. andreas_kupries added on 2002-12-11 02:58:26: Logged In: YES user_id=75003 See also bug 614591. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki