Skip to content
Tcl Source Code Update of ”Object System and Fundamental Object Types”
Login

Update of ”Object System and Fundamental Object Types”

Overview

Artifact ID: 4cf9d794b061fd6aa70f63cb4effeb4b1e8ce906
Page Name:Object System and Fundamental Object Types
Date: 2014-09-09 21:04:19
Original User: dgp
Parent: c085fcae4dc3c841fb376edc2d40cab7647fb590 (diff)
Next beeb903202d2ac673dd11f3635d398c70666e40f
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.

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).