Overview
| Artifact ID: | 92ddfc2e93bb534daff3a577f61531e28d66dd12 |
|---|---|
| Ticket: | 3562640fffffffffffffffffffffffffffffffff
problem loading Thread in 8.5, when compiled for 8.6 |
| User & Date: | dkf on 2012-08-29 19:34:19 |
Changes
- icomment:
If it's doing (effectively) [package require Tcl 8.5], it shouldn't use Tcl_GetErrorLine as that's introduced in 8.6. That means that there'll be a deprecation notice when building against 8.6 (there's no guarantee that we'll maintain the field *after* 8.6, and certainly not in 9.0) but that's not a big disaster. >> Hacking the API function into 8.5's private space isn't a good solution >> because it still won't be in the existing releases of 8.5 > Agreed, but its better than doing nothing. It's worse, because you'll have people complaining that it doesn't work in 8.5 (8.5.12 really). Look the rule is ever so simple. If you use an 8.6 API, depend on 8.6. Trying to build code that works without recompilation and selects between API versions at runtime is so thoroughly wrongheaded I'm almost speechless. The right way is to do a new version of Thread which depends on 8.6 and which uses the correct API without nasty conditional code. That code will not work in 8.5 or before, but will be fine in 8.6. Or alternatively build it for the two "Tcl platforms" and select which implementation to load in the pkgIndex.tcl (assuming that the two implement the same version of Thread's own API).
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"