Skip to content
Tcl Source Code View Ticket
Login

View Ticket

order of requiring packages changes versions loaded

Closed / Invalid3122707fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 16 years ago
Descriptionplain2010-11-29 20:49:26
loading 2 unrelated packages in different orders may lead to a completely different version of the package to be loaded.

% package require http
2.7.2
% package require math::statistics
0.6.3

% package require math::statistics
0.6.3
% package require http
1.0

Specifying a version works around the problem (at least for http):
% package require math::statistics
0.6.3
% package require http 2
2.7.2
dgpplain2010-11-30 03:53:27
allow_comments - 1

This is not a bug.  You've asked [package]
to deliver a package named "http" and
it has done so.  That's all [package require]
promises to do, unless you specify requirements.

Your "workaround" is actually the right thing to do.
Log in (anonymous is fine) to add a comment.