From: "David A. Black" Date: 2004-01-25T03:43:19+09:00 Subject: Re: Modules as namespace Hi -- On Sun, 25 Jan 2004, George Moschovitis wrote: > > What do you mean by "flexible way to declare namespaces"? > > instead of > > module My; module Little; module Namespace > class MyClass > end > end; end; end; > > something like: > > namespace My::Little::Namespace > class MyClass > end > end You can do essentially that, as long as the rightmost one is the only undefined one (since otherwise it's impossible to tell whether they're supposed to be modules or classes): module A class B end end class A::B::C end etc. David -- David A. Black dblack@wobblini.net