Overview
| Artifact ID: | 106d3553ed1b43c1beeead37af48e5a7c700a19d |
|---|---|
| Page Name: | Object System and Fundamental Object Types |
| Date: | 2014-09-11 17:03:45 |
| Original User: | dgp |
| Parent: | e491badfb34de4b6ab37fba8a9eed911aab33521 (diff) |
| Next | b130c9110842355ed49c14c3712d7fc3c5d757f8 |
Content
This is a huge module containing the fundamental base code that represents and manipulates values in Tcl, as well as many foundations that rests on, as well as several of the built-in Tcl_ObjTypes.
For analysis, it helps to break it down futher.
- Encoding
- Hash Tables
- Tcl_Obj System
- string Object Type
- end-offset Object Type
- List Parsing
- String Processing
- Dynamic Strings
- Global Values
- Other Utilities
Critical defect here: much of the API uses a signed int for object lengths (with negative numbers, typically -1, indicating “use strlen() to get the real length”). This is fine on 32-bit platforms, but massively wrong on 64-bit (except for ILP64 architectures, but that's a rare configuration).