Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2010-11-30
03:53 • Closed ticket [3122707fff]: order of requiring packages changes versions loaded<... artifact: 4726d06c83 user: dgp
2010-11-29
20:49 • New ticket [3122707fff]. artifact: af7f8b94c3 user: dvrsn

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.