From: "Hal E. Fulton" Date: 2001-12-05T14:12:14+09:00 Subject: [ruby-talk:27519] Re: Package Naming ----- Original Message ----- From: Dave Thomas To: ruby-talk ML Sent: Tuesday, December 04, 2001 10:53 PM Subject: [ruby-talk:27518] Re: Package Naming > nobu.nokada@softhome.net writes: > > > > Nice trick :) > > > > But I noticed that contants defined in outer modules aren't > > accessible. So bad X-(. > > Sigh... > > > > module Text::Markup > > > > Do you mean module takes any expression? > > No, just shorthand for > > module Text > module Markup But classes and modules can nest arbitrarily, yes? I would think that this could just as easily be class Text module Markup and in fact I think it shouldn't matter. If I say module X::Y::Z I am saying that Z is a module, regardless of whether X and Y are classes or modules. Agree/disagree? Hal