On Monday, November 11, 2002, at 01:22 PM, Jeff Hobbs wrote:

a list is really just a scalar with whitespace between
the elements
Woah, that last part isn't true at all, and is a common misconception
that leads people to think Tcl isn't up-to-snuff, which isn't true.
[snip]

That means that list's lindex accessor is O(1) and appends are O(1)
except where we need to increase the C Tcl_Obj **objv array (and that
only needs to copy the pointers).
I'm happy to stand corrected regarding the implementation, but for someone
writing Tcl code, is there a meaningful difference between my flawed
conceptual model and the implementation?

Reply via email to