5 karma · joined Sep 8, 2007 (19y ago) · 3 submissions
comment 15y ago · link · parent
Tcl8 introduced the Tcl_Obj and a completely new api to deal with them. The old string-based interfaces were kept in place, because we value back compat a lot. They are flagged as deprecated in the manual pages and should only be used by legacy Tcl7 code, or when performance is known not to be an issue.
As to printing the list to the console: that should compute a string representation of the list object without discarding the representation as a list.
comment 15y ago · link · parent
As to "deep changes to an old language": Tcl is actively maintained and still evolving. Tcl8.5 introduced anonymous functions among many other changes; Tcl8.6 (in beta) has a completely new engine (somewhat similar to py's stackless), coroutines and tailcalls, a builtin OO system, and many other enhancements.
comment 15y ago · link · parent