From: Daniel Carrera Date: 2003-01-25T13:22:06+09:00 Subject: Re: Submodules and C On Sat, Jan 25, 2003 at 01:07:02PM +0900, Joel VanderWerf wrote: > >require 'math::const' > > You mean include, right? No, I really do mean require. I know that the include would be: include Math::Const But what I'm asking about is if there is any standard for the "require" line, when you are requiring a submodule. I think that it would be confusing to have: require 'const' include Math::Const And I'm trying to figure out a 'require' line that can convey the idea of a submodule. One idea is: require 'mathConst' include Math::Const So the C function would be called Init_mathConst(). Another idea is to let the C function be called Init_const, and make a "math::const.rb" file that wraps around it, since ":" is a perfectly good file-name character. Something like this: ============ math::const.rb ========= require 'const' ======================================= Now you can do: require 'math::const' include Math::Const I am wondering what people usually make the "require" line when you are requiring a submodule. -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137