Skip to content
Tcl Source Code Changes To Tcl_Obj System
Login

Changes To Tcl_Obj System

Changes to "Tcl_Obj System" between 2014-09-15 20:45:27 and 2014-09-15 20:46:08

︙
58
59
60
61
62
63
64
65

58
59
60
61
62
63
64

65







-
+
However it controls only the creation of the string rep.  The overall value system defines
that when it is time to release the string rep, it will be done with <b>ckfree</b>.  This
implies that every string rep must be a separately <b>ckalloc</b>'d chunk of memory.
Offering the object type control over the release of string reps would allow for other
possibilities, where a set of values drawn from a small set of static strings might be
done without memory management.  Or string reps could be substrings of other
strings kept alive via whatever means is required.  This would imply relaxing the
current requirement that objPtr->bytes[objPtr->length] = '\0'
current requirement that objPtr->bytes values are NUL-terminated.