Overview
| Artifact ID: | 1dbe76e47c125f5a355e92687ded51aadc0a9bc5 |
|---|---|
| Ticket: | 1426692fffffffffffffffffffffffffffffffff
package provide/package ifneeded mismatch errors |
| User & Date: | dgp on 2007-04-25 20:41:22 |
Changes
- icomment:
Logged In: YES user_id=80530 Originator: NO You say "(a) If I ask for "version 1", it must give me the most appropriate version 1.x that it has. Tcl does this." This is another problem with the revised scheme you are attempting to use. Tcl can only accomplish selection of the "most appropriate" version if each available version is accurately labeled with the real version it provides. With versions 1.0, 1.1, 1.2 installed properly with these index scripts: package ifneeded p 1.0 {package provide p 1.0} package ifneeded p 1.1 {package provide p 1.1} package ifneeded p 1.2 {package provide p 1.2} Then the [package] command has the data it needs so you can know that [package require p 1] will actually load p 1.2, the most appropriate one. If you atttempt your scheme: package ifneeded p 1 {package provide p 1.0} package ifneeded p 1 {package provide p 1.1} package ifneeded p 1 {package provide p 1.2} Then it's basically undefined what version will be loaded in reaction to [package require p 1]. It's a feature of [package require] to select the latest compatible version. Your scheme interferes with the workings of that feature. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"