(2012/06/18 20:29), trans (Thomas Sawyer) wrote:
> However, in the the case of tail-recursion, it could be ok since the stack entry is essentially a facsimile of the previous.

Do you mean the following code isn't applied tail call optimization?

  # double recursion (foo -> bar -> foo -> bar -> ...)
  def foo
     bar()
  end

  def bar()
     foo()
  end


I agree it is one option for this problem.

-- 
// SASADA Koichi at atdot dot net