41. List and Dictionary Objects
As of version 8.5, Tcl provides two data structures that are easily accessible from both C and Tcl: lists and dictionaries. Manipulating lists at the Tcl scripting level is covered in Chapter 6 and dictionaries in Chapter 7. The current Tcl list API has been around for several years, so you can count on its being present in any reasonably up-to-date Tcl installation. On the other hand, dictionaries (which are based internally on the hash tables discussed in Chapter 40) require Tcl 8.5 or later.
41.1 Functions Presented in This Chapter
This chapter discusses the following functions for manipulating lists and dictionaries:
• Tcl_Obj *Tcl_NewListObj(int
objc
, Tcl_Obj *CONST
objv
[])
Creates a new list object from ...
Get Tcl and the Tk Toolkit, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.