On Tue, Feb 17, 2009 at 9:36 PM, John Cowan <co...@ccil.org> wrote: > >> I don't think "parameterize" is tail-recursive (it uses dynamic-wind), >> so if you expect procedure calls to be nested deeply, this might not be >> an option. > > It is possible to have dynamic binding and tail recursion at the same > time, though: see http://www.accesscom.com/~darius/writings/dynatail.html > for the general scheme.
Even if you make dynamic-wind tail-recursive (which isn't that trivial), it will still allocate storage for pending thunks. cheers, felix _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users