Skip to content
Tcl Source Code Changes To list Object Type
Login

Changes To list Object Type

Changes to "list Object Type" between 2014-10-10 21:34:50 and 2014-10-10 21:39:48

︙
34
35
36
37
38
39
40













41
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54







+
+
+
+
+
+
+
+
+
+
+
+
+

<h1>Directly Depends On Private Interface of</h1>
  *  [Tcl_Obj System]
  *  [end-offset Object Type]
  *  [List Parsing]
  *  [string Object Type]

<h1>Discussion</h1>

Everything to do with the number or position of elements in a list is done
with ints, and the INT_MAX limitation that imposes.

<b>Tcl_ListObjGetElements</b> returns pointer to the intrep of the
list value, so there are somewhat tricky requirements regarding the
period of validity.

<b>TclListObjCopy</b> is one important tool for dealing with those
requirements -- a way to force a List intrep to stay around longer than
it otherwise might, without more copying than needed.  Either the
importance of such gymnastics needs to fade or this routine or other
suitable tools need to be made public.