Tcl Source Code

View Ticket
Login
Ticket UUID: 0dc653a2fbe5c397974855fe2cecb1cb3d492d
Title: Undocumented feature: Tcl_InitStubs sets version/exact parameters to current for alpha/beta headers
Type: Bug Created on: 2024-04-03 14:54:21
Submitter: oehhar Assigned to: jan.nijtmans
Subsystem: 50. Embedding Support Severity: Minor
Priority: 5 Medium Last modified: 2026-10-22 17:19:29
Status: Closed Closed by: serhiy.storchaka
Resolution: Fixed Closed on: 2026-10-21 10:03:36
Version: main
Description:

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

User Comments:
oehhar added on 2024-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.nijtmans added on 2024-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.storchaka added on 2026-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.