From: Christian Neukirchen Date: 2005-06-16T23:57:37+09:00 Subject: Re: Ruby and recursion (Ackermann benchmark) Pit Capitain writes: > Christian Neukirchen gmail.com> writes: >> The real question is why the Ruby interpreter doesn't do tail-call >> optimization... > > The interpreter doesn't do this automatically. You have to tell him :-) I know that, but there is no reason it couldn't... while your code surely is a nice hack, it's nowhere close to the real thing. > Note that this is just a proof of concept and hasn't been tested thoroughly. > > Regards, > Pit -- Christian Neukirchen http://chneukirchen.org