Overview
| Artifact ID: | e03462e8ae84204b6be3a5b2a85913063c295256 |
|---|---|
| Ticket: | 3562640fffffffffffffffffffffffffffffffff
problem loading Thread in 8.5, when compiled for 8.6 |
| User & Date: | dgp on 2012-11-12 21:50:38 |
Changes
- assignee changed to: "vasiljevic"
- icomment:
I thought we had this one agreed to. Quoting from my comment below: "Well, for Thread 2.7 specifically, it seems we are in agreement. Thread 2.7 uses Tcl_CancelEval() a routine found only in Tcl 8.6. Thus Thread 2.7 ought to be calling Tcl_InitStubs(... "8.6" ...) (whether or not we spell it that way or as TCL_VERSION :) )." Thread 2.7 cannot be provided in a Tcl interp prior to version 8.6. Full Stop. Fossil and the comments here say the commit to trunk came from Jan Nijtmans, but the ChangeLog claims action by Zoran Vasiljevic. Which is it? I'm quite strong and firm in my opinion that Thread 2.7 simply needs to require Tcl 8.6. I'm open to further debate on how Thread 2.6 should make its Tcl_InitStubs() call. However, I'm also quite strong in my opinion that I want to be bundling these packages, not taking them over, so if this path is really the way Zoran wants to go, I'll have to accept it and then consider whether that makes an impact on the decision to bundle. At this date, probably not, especially since other ugliness in Thread (tpool as another package but not really another package?!) hasn't driven me from it because we just need it so much. I think Tcl 9 will need it's own [thread] command that can capture what was learned in Thread and leave behind the debris of all the lessons it took to learn it. Comment to twylite, because of the way [package require] calls provide scripts, the pkgIndex.tcl is doing the right thing. If it can be determined that a provide script will fail, then a [package ifneeded] ought NOT be called for it, because allowing it to be called and fail can cause [package require] to not call and successfully satisfy requirements with another installed version/variant. In the case of Thread 2.7 requiring 8.6, the existence of a Thread 2.7 install is hidden from and 8.5 interp, so it can then go on to run the provide script for any Thread 2.6 that's also installed on the system, which will succeed, so long as it meets the specified requirement.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dgp"