Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Undocumented feature: Tcl_InitStubs sets version/exact parameters to current for alpha/beta headers

Closed / Fixed0dc653a2fbe5c397974855fe2cecb1cb3d492dffCreated 3 years agoUpdated 41 days ago
Descriptionwiki2024-04-03 14:54:21
Ashok gave this link: https://core.tcl-lang.org/tcl/file?ci=tip&name=generic/tcl.h&ln=2331-2334

For package compile with alpha/beta tcl headers, the command *Tcl_InitStubs* ignores the provided version/exact parameter and sets them to current version with exact match.

IMHO this is not documented in doc/InitStubs.3

Would that be a good idea?

Thank you and take care, Harald

oehharwiki2024-04-08 09:51:42

Jan commented that this is only temporary for the TCL 9 alpha/beta phase and will be removed for any forther development.

The reason was the constantly changing binary interface regarding that a lot of int parameters moved to TCL_SIZE.

Thank you, Harald

jan.nijtmanswiki2024-04-26 16:42:10

Starting with Tcl 9.0b2, *Tcl_InitStubs* will no longer require an exact match, anything >= Tcl 9.0b2 will be OK.

Since TIP #692 is the last potentially incompatible API change, we can do that now without risk.

Keeping open, as a reminder to remove the last bits of this, as soon as Tcl 9.0.0 is released.

serhiy.storchakawiki2026-10-21 10:03:36

The remaining alpha/beta special cases of the Tcl_InitStubs macro were removed by [1e24bb8799] (in 9.0.2), so there is nothing left to document.

serhiy.storchaka Ticket [0dc653a2fb]: 3 changes [History diff]2026-10-22 17:19:29
Log in (anonymous is fine) to add a comment.