Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2014-02-21
19:06 • Ticket [3598502fff] Tcl_ListObj docs - shared objects status still Open with... artifact: 46f47ffc50 user: jan.nijtmans
2012-12-26
06:26 • New ticket [3598502fff]. artifact: 26b371bbda user: apnadkarni

Tcl_ListObj docs - shared objects

Open3598502fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 13 years ago
Descriptionplain2012-12-26 06:26:59
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)
jan.nijtmans Ticket [3598502fff]: 1 change [History diff]2014-02-21 19:06:18
Log in (anonymous is fine) to add a comment.