From: Brian Candler Date: 2004-10-04T17:45:48+09:00 Subject: Re: stack level to deep? On Mon, Oct 04, 2004 at 06:09:20AM +0900, STEPHEN BECKER I V wrote: > Is there away to increase the allowed space for the stack info? Not enough to allow for infinite recursion, I'm afraid :-) > def nextl (a,d) > if d==0 then print a # max depth > print "\n" end > for i in 'a'..'z' # add the next letter in the alphabet > nextl(a< print "\n" > end > end Try adding "puts d" at the very top of this method (before if d==0 ...) and you'll see where the problem is. Hint: "return" is your friend :-) Regards, Brian.