From: ES Date: 2005-09-23T10:34:13+09:00 Subject: Re: Mutually dependent libs double loading. TRANS wrote: > I'm on Ruby 1.8.2. > > in t1.rb > > require 't2.rb' > p "HERE1" > > in t2.rb > > require 't1.rb' > p "HERE2" > > then > > > ruby t1.rb > > produces > > "HERE1" > "HERE2" > "HERE1" > > So t1.rb is double loading. A bug? I would hope it's okay for libs to > be mutually dependent. I think the checking is done simply against which files are already #required rather than simply loaded. > Thanks, > T. E -- No-one expects the Solaris POSIX implementation!