|
From: Andreas L. <av...@lo...> - 2008-11-23 17:31:32
|
"Donal K. Fellows" <don...@ma...> wrote:
> Twylite wrote:
> > I believe the point was:
> > % string match ARITH* [list "ARITH MATRIX" foo bar]
> > 0
Yes, that's what I meant.
> But since we don't construct error codes like that, it doesn't matter.
> If someone does, they can use:
> string match {{ARITH MATRIX}*} ...
Perhaps it's just me that I envision hierachies of error classes.
Not being able to catch ARITH and all subclasses like a "ARITH MATRIX"
with the same clause - just because the latter has list-meta-syntax that
needs to be taken care of - feels just wrong to me.
If we specified the pattern to be applied only to [lindex $errorCode 0]
or [join $errorCode], that would also solve the problem.
Otherwise we'd have to discourage use of spaces and all other
list-special characters in user defined errorcodes.
|