Skip to content
Tcl Source Code Update of ”list Object Type”
Login

Update of ”list Object Type”

Overview

Artifact ID: d8b10b68e5f13f544579d2eeabf96ad6cc0e5344
Page Name:list Object Type
Date: 2014-10-10 21:39:48
Original User: dgp
Parent: bac4e3e259331d678dfa38c46abd15c715e0478b (diff)
Content

Source Files

Public Interface

Private Interface

Directly Depends On Public Interface Of

Directly Depends On Private Interface of

Discussion

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

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

TclListObjCopy 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.