From: Caleb Clausen Date: 2010-01-24T05:07:34+09:00 Subject: [ruby-core:27739] Re: able to re-require $0 On 1/23/10, Robert Klemme wrote: > Yes, that's the easy fix. But the easy fix is not robust (i.e. you > can still require it via a symlinked file) But Kernel#require has the same issue. > and rarely necessary since > nobody really would "require $0". Not like that, no. But I can easily see a scenario where foo.rb requires bar.rb which turns around and requires foo.rb again. That's a circular require, and ought to be detected as such even if foo.rb is the main script.