]> gitweb.factorcode.org Git - factor.git/commit
Reimplement leach so that stack is clean when executing the quotation
authorSamuel Tardieu <sam@rfc1149.net>
Fri, 21 Dec 2007 04:42:25 +0000 (05:42 +0100)
committerSamuel Tardieu <sam@rfc1149.net>
Fri, 21 Dec 2007 12:33:56 +0000 (13:33 +0100)
commit858237c0f879acc362805822f1f850c0e2646f25
tree4fda8317585a4427b899a89368793cb3c57e0172
parentf2b4a04a44fa22c0453a865f9676dcccc6392c1d
Reimplement leach so that stack is clean when executing the quotation

The previous implementation let garbage on the stack (such as the lazy list
cdr) before executing the quotation. This prevents easy implementation of
reduce-like words using leach.
extra/lazy-lists/lazy-lists.factor