[Issue 1076] by using scope(exit) tail recursion ain't working

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 21 11:38:11 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1076


smjg at iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com




------- Comment #3 from smjg at iname.com  2007-03-21 13:37 -------
(In reply to comment #1)

I don't see how that would help.  The scope(exit) code would have to be called
as many times as there are levels of recursion.  In this case, where it doesn't
touch any local variables, it could probably be rewritten as a for loop.  But
in the general case, you'd still need all the stack frames for it to work.


-- 



More information about the Digitalmars-d-bugs mailing list