Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fe7c5b7a4ab75308c29e109eea4e2bc9688a7a0d
Ticket: 1162286fffffffffffffffffffffffffffffffff
Inconsistent Tcl_PkgRequire return values
User & Date: dgp on 2005-11-04 21:59:30
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    Before applying that patch:
    
    % package ifneeded foo 1 {
      package require bar 1
      package provide foo 1
    }
    % package ifneeded foo 2 {
      package provide foo 2
    }
    % package ifneeded bar 1 {
      package require foo 2
      package provide bar 1
    }
    % package require foo 1 
    conflicting versions provided for package "foo": 2, then 1
    % package provide foo
    2
    
    After the patch:
    (... same setup ...)
    % package require foo 1
    conflicting versions provided for package "foo": 2, then 1
    % package provide foo
    %
    
    In this situation, there could now be
    a weird mixture of foo 1 and foo 2 now
    loaded in the interp.  It makes a bit
    more sense not to claim one version or
    the other, so the patch helps a bit.
    
    However, the error message seems
    misleading.  Perhaps would be better
    to explictly detect and report circular
    dependencies?
    
    comments?
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"