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

Changes To dict Object Type

Changes to "dict Object Type" between 2014-10-09 21:51:47 and 2014-10-09 23:33:07

︙
24
25
26
27
28
29
30




31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49






50
51
52
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62







+
+
+
+



















+
+
+
+
+
+



<h1>Directly Depends On Public Interface Of</h1>
  *  [Hash Tables]
  *  [Tcl_Obj System]
  *  [Panic]
  *  [Parsing and Evaluation]
  *  [string Object Type]
  *  [index Object Type]
  *  [list Object Type]
  *  [String Processing]
  *  [numeric Object Types]
  *  [Variable Commands and Interfaces]

<h1>Directly Depends On Private Interface of</h1>
  *  [Bytecode]
  *  [Tcl_Obj System]
  *  [List Parsing]
  *  [list Object Type]
  *  [string Object Type]
  *  [Parsing and Evaluation]
  *  [Variable Commands and Interfaces]
  *  [namespace]

<h1>Discussion</h1>

<b>Tcl_DictObjSize</b> returns an int, imposing the same
 INT_MAX size limitations as in other parts of Tcl.

The <b>*KeyList</b> functions use an int argument to specify
the length of the key list.  It's less clear whether this limit is
as important.  (Should dicts be deep as well as wide?)

<i>I think it's not important.  The key list interfaces are 'only'
conveniences.  They do not make anything fundamentally 
possible that repeated single key calls could not do.  Contrast
with the size limit, where a dict with too many keys is
fundamentally unable to correctly report its size.</i>

The filtering script of <b>dict filter</b> is not NRE-enabled.
Perhaps it should not be (similar to <b>lsort -command</b>) ?