Twylite wrote:
> Is it necessary for [throw] to be in the core? It's easily implemented
> in Tcl and not performance critical, so I'd be happy to let it mature in
> a tcllib extension first.
OK. Let's not go through *another* round of changes on this!
> (*) I take it that [lrange] is forcing a canonical representation of the
> lists and that my current level of awakeness is not fooling me.
> As a cross-check, this would be an iterative implementation of what I am
> intending:
> for {set i 0} {$i < [llength $pattern]} {incr i} {
> if { [lindex $pattern $i] ne [lindex $errorcode $i] } { return 0 }
> }
> return 1
They compute the same thing. Mine just uses a different layer of Tcl to
do the iteration (and is easier to bytecode by far; we have a "fixed
lrange" operation already).
The TIP passes my fitness checks. I'll start the vote tomorrow. :-)
Donal.
|