From: Joshua Muheim Date: 2009-10-01T06:07:29+09:00 Subject: Re: SystemStackError: stack level too deep > how make it deeper? > So I get put down for suggesting the very thing Rob did, who gets > praise? > > If you don't want long-running code crashing, don't do it recursive in a > language like Ruby. You will run out of memory, and you will crash. > There > are very few, if any, algorithms normally written recursively that can't > be > written iteratively. > > Jason OK, thank you. :-) At least, this a useful piece of information, I don't have much experience in writing algorithms... Anyway, I will hand in my solution above; in theory it works. :-) -- Posted via http://www.ruby-forum.com/.