From: nobu.nokada@... Date: 2003-02-20T21:14:31+09:00 Subject: Re: module This::Encompassing::That Hi, At Thu, 20 Feb 2003 20:02:07 +0900, Brian Candler wrote: > > > Would it not be clearer to eliminate the duplication of all those prefixes > > > though? e.g. > > > > > > module Utils > > > autoload :ClassA, 'utils/classa' > > > autoload :ClassB, 'utils/classb' > > > autoload :ClassC, 'utils/classc' > > > autoload :ClassD, 'utils/classd' > > > end > > > > This modification had been discussed in ruby-dev, from > > [ruby-dev:16165] and [ruby-dev:18103]. Perhaps, the final > > patch is [ruby-dev:18184]. > > Not sure what 'this modification' is, because the above works under 1.6.8 > already as far as I can tell. Autoload affects only top level constants, even in module definition. I suspected that you wanted the files to get loaded by access to constants under Utils. Excuse my misunderstanding. > Thanks to Babelfish I get from [ruby-dev:18184]: > > "Because Nakata's method very > mounting is simple, the air does whether this way it is not to be good > being. > Lottery" Hmmm, "Because Nakada's implementation is simple, it looks good enough for me. Okuji" -- Nobu Nakada