|
From: Andreas L. <av...@lo...> - 2008-11-23 21:15:19
|
"Donal K. Fellows" <don...@ma...> wrote:
> [about Andreas's suggestion of list-pattern ]
> It's also massively more complicated to implement and document.
complicated to document?
The <patList> is a list of glob-patterns applied each on
the positionally corresponding element of <errorCode>.
complicated to implement?
proc matches {patList errorCode} {
set i 0
foreach p $patList {
set errElem [lindex $errorCode $i]; incr i
if {![string match $p $errElem]} {return 0}
}
return 1
}
Ok, it's more than a single [string match], but it's not
massively more complicated.
> > Even if it is not considered for 8.6b1, I do hope it will
> > be in for 8.6.
actually I meant: string map {considered implemented}
|