It's also not necessary. The index to an array can be a list, and the
boundaries in a list are well behaved.
> In my opinion, the lack of simple but sophisticated native data
> structures is one of the main impediments to building clean, large
> systems with tcl.
Tcl isn't intended for building large systems. If you want to build
large systems, use scheme.
> The "word basis" of tcl operations breaks down pretty quick. What
> about:
> [expr {($hostsNoticed > 1) ? "s" : ""}]
I wouldn't write that. I'd write:
[lindex [list "" s] [expr "$hostsNoticed > 1"]]
> The string-nature of the native types in tcl drives me *crazy*, when
> it comes to distingushing structure from syntax.
You're not supposed to distinguish structure from syntax. It's like Lisp
and Scheme in that way.
-- Peter da Silva `-_-' Network Management Technology Incorporated 'U` 1601 Industrial Blvd. Sugar Land, TX 77478 USA +1 713 274 5180 "Har du kramat din varg idag?"