Overview
| Artifact ID: | 0bf2abbe48e37f01079a013e9109148f0f3511b3 |
|---|---|
| Ticket: | 579633ffffffffffffffffffffffffffffffffff
why are there static paths in libtcl? |
| User & Date: | dkf on 2002-07-11 16:42:21 |
Changes
- icomment:
Logged In: YES user_id=79902 Fundamentally, Tcl needs to find three things at startup: the place to source its library-scripts from, the place to grab the encodings from, and the place to get package indices from (the first two are really combined into the same problem by putting the encodings in a subdir.) You can't expect users to set environment variables properly (experience suggests that they tend to get it wrong), the registry is not available on Unix, and there is no guarantee that an RC file will help either. The problems with an RC file are: * In a home directory, it might either not exist or (worse) might be out of date. * /etc is not necessarily writable by all. Plus you've still got the problem of keeping things up to date. * Relative to the prefix (or exec_prefix) is much better, because that can be known to be writable at install time and it should be up-to-date for the library too. But then you have the problem of knowing where to find that RC file! All you've done is rearrange the deckchairs and provided a way for the various parts of an installation to get out of sync. :^( I don't see any nice way out of this. Building bootstrap paths into the library is just the least-sucky way (of a lot of ways that all suck) out of this hole. Perhaps a way forward would be for there to be some kind of pluggable hook that the likes of tclkit could use to help out with the bootstrapping?
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"