I just assumed that, since you used "case", which currently only handles constants. I would like to keep such constrains if possible to keep some sort of internal consistency. If one should be able to use expressions, as we appears to agree on, we should either use a known keyword that handles expressions or use a new one.
/ Martin Nilsson (saturator)
Previous text:
2003-10-01 21:37: Subject: Re: throw or return
Who said it should be limited to looking at constants in the error objects (or using inheritance, which has the same expressive power)? I made a point that the catch conditions should be more powerful than that. As for categorizations, constants or a class hierarchy are both well suited to solve that.
/ Martin Stjernholm, Roxen IS