On 4/18/07, Csaba Henk <[EMAIL PROTECTED]> 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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to