Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e183471522583baead74781d7a10fb6470b9e1cf
Ticket: 1426692fffffffffffffffffffffffffffffffff
package provide/package ifneeded mismatch errors
User & Date: twylite on 2007-04-25 16:14:28
Changes

  1. icomment:
    Logged In: YES 
    user_id=91629
    Originator: NO
    
    Also, the Tcl 8.5 documentation has the following to say about -exact:
    
    ---
    package require -exact package version
        This form of the command is translated to the form below using the bounded requirement "version-(version+1)", making only the given version acceptable, within the specified level of detail. Deeper levels are allowed to vary. Examples:
    
        -exact 8      => 8-9
        -exact 8.4    => 8.4-8.5
        -exact 8.4.14 => 8.4.14-8.4.15
    ---
    
    > [package require -exact p 1] will "succeed" but it won't deliver the exact version requested.
    
    According to the docs, that is supposed to succeed.
    
    If you didn't have -exact then [package require p 1] could provide v2.x instead.
    
    What won't succeed is [package require -exact p 1.1], because the selection logic can't find something suitable to load for version 1.1.
    
    
    
  2. login: "twylite"
  3. mimetype: "text/plain"
  4. username: "twylite"