From: dblack@... Date: 2003-02-14T11:38:22+09:00 Subject: Re: module This::Encompassing::That Hi -- On Fri, 14 Feb 2003, Bil Kleb wrote: > Today, I decided I was tired of > > module This > module Encompassing > module That > finally_some_really_overly_indented_code > end > end > end > > and tried, > > module This::Encompassing::That > some_much_less_indented_code > end > > since I already do things like, > > This::Encompassing::That.module_method > > but alas, it didn't work. > > Is there a reason why these two module aspects are not more aligned? > I haven't looked at the source, but it seems that the module parsing > must already be in place for constructs like This::Encompassing::That, > so what not allow it for defining modules too? It's possibly because that notation can mean more than one thing: module X module Y class Z or module X module Y Z = 100 so there's no way to determine from the :: notation what you're intending to create. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav