Overview
| Artifact ID: | 8eae403d56ed7e6cd3f6b81038fa230946ef26a9 |
|---|---|
| Ticket: | 3562640fffffffffffffffffffffffffffffffff
problem loading Thread in 8.5, when compiled for 8.6 |
| User & Date: | nijtmans on 2012-09-07 04:15:43 |
Changes
- icomment:
> Thus Thread 2.7 ought to be calling > Tcl_InitStubs(... "8.6" ...) (whether or not we > spell it that way or as TCL_VERSION :) ). And Thread 2.6 ought to be calling Tcl_InitStubs(... "8.4" ...), which it, thankfully, does. Thread 2.6 doesn't use any 8.5+ API's but it uses Tcl_GetErrorLine() if compiled against 8.6 headers.... So Thread 2.6 has the same bug..... and it isn't 'violating' using API's outside it's [package require] expectations..... > Well, for Thread 2.7 specifically, it seems > we are in agreement. Either Thread should use a fixed "8.6", or a correct runtime detection of used API's (however difficult that is, I understand that people resent that, it's certainly not advisable!). But Thread already implements the runtime detection, the difficult work has already been done. It would be a waste to throw it away, now that it works. I now backported the bug-3562640 fix to Thread 2.6 as well. So Thread is not using the Tcl_GetErrorLine API any more. It is just using its own macro equivalent to interp->errorLine, which just happens to have the same name as the 8.6 API ;-)
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"