Overview
| Artifact ID: | 29555bf1f681cd9b35e2b57808f50fe20e2aa484 |
|---|---|
| Ticket: | 3562640fffffffffffffffffffffffffffffffff
problem loading Thread in 8.5, when compiled for 8.6 |
| User & Date: | dgp on 2012-09-07 02:18:15 |
Changes
- icomment:
The benefit of putting TCL_VERSION in the Tcl_InitStubs() call is that you enlist the compiler's help in determining that you truly are limiting yourself to the API version you claim to need. The (debatable) disadvantage is that you must keep around the header for the earliest version of Tcl you intend your binary to [load] into. This is a somewhat more serious issue when the builder and the author of the extension are not the same person. Training an audience of build-bots that it matters what Tcl header is compiled against is something of an uphill climb. The speed of deprecation here is part of the issue. We may well be over-learning the lesson of interp->result. It would not bother me personally to drop the use of TCL_DEPRECATED_API. TIP 336 did not call for that; it was added later. "There is no way for an extension to eliminate the deprecation warning and still compile and run with multiple Tcl versions." I think you'll find that bug-3562640 achieves that. "... teapot must supply two different thread versions, 2.6 and 2.7, as long as Tcl 8.5 is alive." That's precisely the scenario that Tcl's [package] excels at supporting, so that seems fine to me.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"