From: Donald G Porter <dgp@ni...> - 2005-07-05 13:22:46
> subcommand syntax:
> package create ;pkg::create
> package mkIndex ;pkg_mkIndex
The only thing that should happen with [::pkg::create] is destruction.
It's an internal utility routine that never should have been made
public to begin with.
If we are to move [pkg_mkIndex] under [package], it would be best to
change its interface at the same time to be a command that creates
and returns an index script. The caller can then do any thing it
finds suitable with that script, rather than the current practice
of [pkg_mkIndex] forcing that the script must be written to a file
As written, [pkg_mkIndex] is only suitable for setting things up for
[::tclPkgUnknown]. Modified to return the index script, a
[package index] command (my preferred subcommand name) could be
a useful tool for other [package unknown] schemes.
There are other RFE's regarding [pkg_mkIndex] that could be folded
in to this TIP as well.
| Don Porter Mathematical and Computational Sciences Division |
| donald.porter@... Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |