Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cba9d3b0383b1b39a84ab00d80cc75d302d4d50e
Ticket: 3562640fffffffffffffffffffffffffffffffff
problem loading Thread in 8.5, when compiled for 8.6
User & Date: dgp on 2012-09-07 19:21:23
Changes

  1. icomment:
    Thread 2.7 currently fails the important function
    of supporting a script that wants to do this:
    
    package require Thread 2.7
    ...
    thread::cancel ....
    
    I have such a script.  It's the thread.test file
    in the Tcl 8.6 test suite.  If it happens to pick
    up Thread 2.7 that was built against 8.5 headers
    then the [thread::cancel] command is not present
    and the script fails.  I have seen this happen.
    
    Now the script could check for the existence of
    the command too, but that pretty much negates
    the value of gathering sets of commands into
    collections and calling them packages now doesn't it?
    
    Revising Thread 2.7 to stop lying and claiming it
    can provide its command set on top of a Tcl 8.5
    foundation is the simple and correct solution.  I 
    intend to put that solution in place on the Thread
    trunk today, in service of another Tcl+pkgs rc
    snapshot ASAP.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"