Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 973ad41ac2c680ff200f4e4a68b9d204cc5a763b
Ticket: 1426692fffffffffffffffffffffffffffffffff
package provide/package ifneeded mismatch errors
User & Date: dgp on 2007-04-24 23:25:05
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    Originator: NO
    
    
    I'm sorry that you've fallen into
    those habits, but they're simply
    not compatible with the package
    selection logic used by
    [package require].
    
    When you do
    
    package ifneeded p 1 {package provide p 1.1}
    
    and Tcl doesn't detect and prevent the error,
    then several things get broken:
    
    [package require p 1.1] will fail, even
    though version 1.1 is available.
    
    [package require -exact p 1] will "succeed"
    but it won't deliver the exact version
    requested.
    
    Tcl's tolerated this brokenness for a long time,
    and there will be some pain in migrating the
    broken packages.  It may be that we'll have
    to soften the errors to warnings in order to
    ease the transition, and I'll accept that if
    it turns out to be necessary.  However, the
    release of a new minor version of Tcl is exactly
    the right time to at least attempt to work
    through the pain.
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"