On Tue, Jul 01, 2003 at 05:34:06PM +0900, Andrey Kulinich wrote:
> Without test/unit ruby finished work and said that stack level too deep.
> Is this correct that in this code ruby goes to infinity recursion?
> 
> ruby 1.8.0 (2003-06-06) [i386-freebsd4.7]
> 
> ---
> #!/usr/local/bin/ruby
> require 'test/unit'
> 
> module Recur
>      def self.new
>          Recur.new
>      end
> end
> 
> class Tests < Test::Unit::TestCase
>      def test_1
>          Recur.new
>      end
> end

Yep, that's definitely a nice piece of infinite recursion. What are you
trying to achieve?

module Recur
   def self.new        ==> same as  def Recur.new

Regards,

Brian.