|
From: Chris D. <chr...@do...> - 2007-04-17 22:21:05
|
On 4/18/07, Csaba Henk <csa...@cr...> wrote: > Or maybe match-cond should be altered so > that the matching quotation is tail called? Yes, this is an annoying problem and is the price to pay for the convenience of being able to use ?foo to get the value of the 'foo' pattern match in the match-cond quotation. Anything using dynamic scope will not have tail calls within the quotation due to needing to pop that namespace of the namespace stack. For example: : foo [ foo ] with-scope ; I could do a match-cond equivalent that puts the match on the stack rather than in variables. in factor, this is how it used to work in my first iteration of the concept. I will probably change it back to that. Chris. -- http://www.bluishcoder.co.nz |