Hi,

In message "[ruby-talk:9772] Re: require loop"
    on 01/01/24, Dave Thomas <Dave / PragmaticProgrammer.com> writes:

|I must be particularly dumb today. Why does this need to be caught at
|all. Unless $" is not getting updated, won't the loop be broken the
|second time you try to load the same file?

To avoid providing incomplete load status (mostly relating thread race
condition).  But it may be too much pedantic.  Hmm.

Following patch would recover old behavior.  Could you see how well it
goes?

							matz.

--- eval.c.orig	Wed Jan 24 15:32:10 2001
+++ eval.c	Thu Jan 25 00:41:17 2001
@@ -5207,3 +5207,3 @@
 		if (th == curr_thread) {
-		    rb_raise(rb_eLoadError, "infinite load loop -- %s", f);
+		    return Qtrue;
 		}