From: Daniel Carrera Date: 2003-01-25T13:46:32+09:00 Subject: Re: Submodules and C On Sat, Jan 25, 2003 at 01:37:52PM +0900, Joel VanderWerf 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. > 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. Cheers, -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137