September 2009
Intermediate to advanced
816 pages
19h 38m
English
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.
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 ...
Read now
Unlock full access