From: nobu.nokada@... Date: 2003-01-25T17:45:31+09:00 Subject: Re: Submodules and C Hi, At Sat, 25 Jan 2003 13:46:32 +0900, Daniel Carrera wrote: > > Ah, sorry. I understand the issue now. Your wrapper idea sounds > > workable. Or maybe 'require "math/const"'. > > That's probably the best idea. I think I'll do that. > > After I thought about it, perhaps 'math::const.rb' was probably a bad > idea. There might be a system somewhere that might have problems with the > "::" characters. Under classical MacOS, "::" meant the parent directory. Although ruby doesn't work there. > > I've never tried it, but what if the Init_X() function and Y.so (or > > Y.dll) have X != Y ? > > > > In other words, does ruby's loader look for Init_FOO when opening > > FOO.so, or will it run any Init_BAR that it finds? I'm guessing not, > > from what README.EXT says, but this might solve the problem. > > ruby's loader looks for Init_FOO in FOO.so and Init_BAR won't work. Also note that it is case-sensitive. -- Nobu Nakada