Overview
| Artifact ID: | f20f8e9946ed36a96526e807ef8cd2c364c0fccd |
|---|---|
| Ticket: | 680169ffffffffffffffffffffffffffffffffff
Tcl interpreter pkgIndex 'cache' |
| User & Date: | jenglish on 2003-03-05 03:20:33 |
Changes
- icomment:
Logged In: YES user_id=68433 This approach looks overly complicated and error-prone to me. It's especially dangerous to automatically generate the central package index in [info library] in the [package unknown] handler -- this is something that should be left up to the system administrator to do by hand. It it necessary to parameterize the cache by [info hostname], [info nameofexecutable], and the value of $::auto_path? Why would the same program need a different cache on different hosts? (Actually, I think it would be best if any Tcl program with the same [info library] could use the same package cache, but there are pkgIndex.tcl scripts which use (IMO overly-)clever heuristics to decide whether or not to register 'ifneeded' scripts, so checking [info nameofexecutable] might be appropriate). Instead of parameterizing the cache by the $::auto_path value, it might make more sense to keep per-directory caches; [package unknown] could check for a cache before scanning for pkgIndex.tcl files while processing $::auto_path.
- login: "jenglish"
- mimetype: "text/plain"
- username: "jenglish"