Skip to content
Tcl Source Code Changes To Migrating C extensions to Tcl 9
Login

Changes To Migrating C extensions to Tcl 9

Changes to "Migrating C extensions to Tcl 9" between 2023-10-29 19:30:40 and 2023-10-30 18:35:45

︙
10
11
12
13
14
15
16

17


18
19
20

21



22
23
10
11
12
13
14
15
16
17

18
19
20
21
22
23

24
25
26
27
28







+
-
+
+



+
-
+
+
+



32-bit Tcl_UniChar, profiles...

TBD

## `Tcl_ObjType` versioning

The Tcl value system has been extended. The Tcl\_ObjType has additional (optional) fields.  Any Tcl extensions, or embedded integration with Tcl, that has a custom Tcl\_ObjType value defined, should review these changes.  Existing code should compile and execute just fine, unless the particular implementation is using any "creative" programming. In simpler terms, the Tcl\_ObjType structure is larger. It should be initialzed properly without any changes needed, but YMMV.
TBD

Please see the Tcl_RegisterObjType manual page for more details, as well as TIPs #644 and #636.

## Abstract lists

An abstract list is a custom Tcl Value (custom Tcl_ObjType) that can be treated as a Tcl List at the script level without causing the value to be converted to a List type. To make this possible, the custom type must implment a set of accessor functions that allow the various list commands to access the value "elements" directly. 
TBD

See the Tcl_RegisterObjType manual page for more details, as well as TIPs #644 and #636.