Brian Candler wrote:

>>But after that I rename class Recur to Another and forgot to change in 
>>def self.new.
>>Without test/unit ruby said that there is an infinite recursion. Is that 
>>a bug or a feature?
> Neither, it's correct behaviour. If class Recur no longer exists, then the
> call to 'Recur.new' will refer to the function 'new' in module Recur, which
> is itself (hence infinitely recursive).

I was talking about test/unit.
Why when I'm using it in such code ruby can't detect infinite loop? In 
my opinion this is test/unit's bug.

-- 
with best regards,
Andrey Kulinich
IT Group
Software developer
phone/fax +380 (372) 58-43-10
e-mail: Andrey.Kulinich / itgrp.net
http://www.itgrp.net