From: nobu.nokada@... Date: 2002-04-19T09:55:41+09:00 Subject: Re: recursive require warning... Hi, At Fri, 19 Apr 2002 02:47:18 +0900, Phil Tomson wrote: > Is it possible that we could have some sort of warning message when this > happens, something like: "Warning: recursive require slave.rb line 3" It's easy, but really desirable in common? Index: eval.c =================================================================== RCS file: /cvs/ruby/src/ruby/eval.c,v retrieving revision 1.283 diff -u -2 -p -r1.283 eval.c --- eval.c 2002/04/18 08:46:17 1.283 +++ eval.c 2002/04/19 00:17:11 @@ -5421,4 +5421,5 @@ rb_feature_p(feature, wait) while (st_lookup(loading_tbl, f, &th)) { if (th == curr_thread) { + rb_warning("recursive require \"%s\"", f); return Qtrue; } -- Nobu Nakada