From: Gavin Sinclair Date: 2003-02-15T23:04:06+09:00 Subject: Re: module This::Encompassing::That On Friday, February 14, 2003, 2:00:56 PM, Bil wrote: > dblack@candle.superlink.net wrote: >> >> so there's no way to determine from the :: notation what you're >> intending to create. > Excellent point. However, since the idea of the "module" keyword is to introduce a new module or reuse an existing one, I don't see why the OP's idea couldn't work. module X module Y module Z end C = 100 end end module X::Y def foo; end end # could work - use existing module module X::Y::Z def foo; end end # could work - use existing module module X::Y::C def foo; end end # error; C is a constant module X::Y::Z::A def foo; end end # could work - creates new module I like the idea. Gavin