#5152 Tcl_ListObj docs - shared objects

current: 8.6.0
open
Jan Nijtmans
5
2012-12-26
2012-12-26
No

Two minor suggestions for the manpage for Tcl_NewListObj

The docs should mention that the listPtr passed to functions like Tcl_ListObjReplace must not be shared.

Secondly, since 8.5.0 (at least) it is legal to do a Tcl_NewListObj(10, NULL) to create a new list obj that is an empty list but has preallocated space. For some applications building large lists, this is very useful but is "undocumented" functionality. It would be nice if this were documented and codified as officially supported (as in the call being legal even if the preallocation is not guaranteed)

Discussion