From: 7stud -- Date: 2011-04-19T02:29:13+09:00 Subject: Re: Tail Call Optimization (Tail Recursion) Terry Michaels wrote in post #993440: > I did some googling to find out if Ruby supports tail call optimization, > as I wanted to write tail-recursive functions. All posts I found > indicated that 1.9 supports this, but it is not enabled by default. > However, all those posts were about two years old, so I'm wondering what > is the current situation: do I still need to upgrade to 1.9 to get that > capability? Or is there something in 1.8 I can enable? Couldn't you test that by creating two recursive functions: one with a tail call and one without, and then benchmarking them? -- Posted via http://www.ruby-forum.com/.