Hi,

At Sun, 23 Sep 2007 06:50:05 +0900,
Joel VanderWerf wrote in [ruby-talk:270374]:
> > -    require "#{dir}/#{mod}.so"
> > +    require "#{dir}/#{mod}." + CONFIG['DLEXT']
> >    end
> > 
> >    def self.generate_code_for_class
> > 
> > Mostly fixes MS Windows issues, but the DLEXT bit also fixes platforms
> > that don't generate .so files (OS X, HP-UX).
> 
> Why not just
> 
>  > +    require "#{dir}/#{mod}"
> 
> which should work if there are no stray .rb files in the dir?

Actually, CONFIG['DLEXT'] is unnecessary at all and that code
works fine with ".so" on every platforms, since the extension
".so" will be substituted with DLEXT internally.

-- 
Nobu Nakada