Tcl Source Code

dict Object Type
Login

Source Files

Public Interface

Private Interface

Directly Depends On Public Interface Of

Directly Depends On Private Interface of

Discussion

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

The *KeyList 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 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.

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