Overview
| Artifact ID: | 2a576668f922223228f83115af72bbc254f31354 |
|---|---|
| Ticket: | 3588687fffffffffffffffffffffffffffffffff
Tcl_InitStubs() Broken As Designed |
| User & Date: | dgp on 2012-11-29 01:04:01 |
Changes
- icomment:
Ah, thanks. Something else to clarify. I'm aiming this patch at bridging the transition to the novem-remove-string-result branch. I'm not aiming at the stubs changes that are currently on the tip of the novem branch. I don't see the need to change the TCL_STUBS_MAGIC value to make the 8->9 transition. The functioning of the Tcl_PkgRequireEx() routine in the first stubs slot is enough to manage the version checking. The constraint that Tcl 9 has to keep that entry, and keep it first in the stubs table is a reasonable one, I think. I also see no need to have a TCL_STUBS_MAGIC value that depends on sizeof(size_t). If a [load]ing program and a [load]ed extension don't agree at that level, I believe that the dlopen() or equivalent routine will detect that and fail long before our stubs checking mechanisms are ever called on. That said, yes I agree that if we keep a Tcl_InitStubs() function to offer linkability of all libtclstubs8*.a libraries, we should use a literal value 8 for the argument instead of TCL_MAJOR_VERSION.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"