From: Thomas Hurst Date: 2008-09-04T12:11:08+09:00 Subject: Re: Does Ruby optimize tail-call recursion? * Patrick Li (patrickli_2001@hotmail.com) wrote: > I'm wondering if Ruby 1.9 optimizes tail-call recursion? I've read > some reports that say yes, and some that say no. Does anyone know? vm_opts.h: #define OPT_TAILCALL_OPTIMIZATION 0 Set to 1, rebuild. The comments suggest it can be changed at runtime via VM::CompileOption, which doesn't seem to exist. Hopefully it'll be enabled by default at some point in future. -- Thomas 'Freaky' Hurst http://hur.st/