From: Baptiste Lepilleur Date: 2002-05-07T01:33:34+09:00 Subject: Re: require and case I confirm this behavior. I stumbled on something similar on ruby 1.6.7 ms-win32: require 'scintilla/Constant.rb' require 'scintilla\Constant.rb' => ruby consider those as different require, and declare the constant twice, which produce warning... Path should probably be normalized or something like that. Baptiste. ----- Original Message ----- From: "Cameron McBride" To: "ruby-talk ML" Sent: Saturday, May 04, 2002 6:10 AM Subject: Re: require and case > > > pigeon% ruby -e 'require "b.rb"; require "b.rb"' > > > Loading b.rb ... > > > pigeon% > > > > > > pigeon% ruby -e 'require "b.rb"; require "./b.rb"' > > > Loading b.rb ... > > > Loading b.rb ... > > > pigeon% > > > > Have require insert the basename of the file that's loaded into $", > > rather than just the relative name? > > I know very little about the internals, but couldn't the entire path be > stored, so that in the case above -- it would know they were the same > file? > > I understand the problem with the relative name, but if there is a > problem with the entire path -- I am missing it. (enlightenment is > always a good thing) > > Cameron > >