Overview
| Artifact ID: | e3ec43ba68769cafffa11ff0365f56326de87ff1366f73820f05a7aa61f62da0 |
|---|---|
| Ticket: | e58d7e19e937496f179fe711345b415f3f3d31b2
Upwards compatibility of TclObjTypeHasProc() |
| User & Date: | jan.nijtmans on 2023-07-27 12:45:52 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
The function TclObjTypeHasProc() currently only supports version "1" and version "2". That means that as soon as a version "3" is introduced, already-released Tcl versions won't recognise it any more, even if the Tcl_ObjType struct has the same functions at the start. This is a fundamental problem, easily solvable. It's the problem behind [https://core.tcl-lang.org/tcl/file?name=generic/tclInt.h&ci=b8758a9e34391baf&ln=1088|this] remark The problem was introduced with [741923851e3176e8|this] commit (despite the comment "Cleanup abstract list definitions"); everything was fine before. If we assume that Tcl_ObjType is a structure, increasing in size with newer versions, we can continue to update the structure with adding new functions at the end without losing future upwards compatibility. This is already proven in the Tcl\_Channel structure, which follows the same concept.
- foundin changed to: "9.0"
- is_private changed to: "0"
- login: "jan.nijtmans"
- priority changed to: "5 Medium"
- private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "jan.nijtmans"
- subsystem changed to: "10. Objects"
- title changed to: "Upwards compatibility of TclObjTypeHasProc()"
- type changed to: "Bug"