From: "NAKAMURA, Hiroshi" Date: 2002-10-08T17:25:57+09:00 Subject: Re: odd edge case with require Hi, > From: "Patrick May" > Sent: Tuesday, October 08, 2002 4:33 PM > $ cat test.rb > require 'test.rb' > puts "Should this only be outputted once?" > > $ ruby test.rb > Should this only be outputted once? > Should this only be outputted once? > > $ ruby -v > ruby 1.6.7 (2002-03-01) [i586-mswin32] 'require' only checks duplicated requiring. Try; ruby -rtest.rb -e 0 > The above behaviour seems a bit strange to me. Could be, although it wouldn't matter. Can ruby check this? Or should not check? Regards, // NaHi