C extensions and class constants nested within modules

Ah, ok. I think I can live with that for my needs. :slight_smile:

Thanks to all who replied.

- Dan

路路路

-----Original Message-----
From: Mauricio Julio Fern谩ndez Pradier
[mailto:batsman@tux-chan] On Behalf Of Mauricio Fern谩ndez
Sent: Tuesday, November 22, 2005 12:03 PM
To: ruby-talk ML
Subject: Re: C extensions and class constants nested within modules

On Wed, Nov 23, 2005 at 03:34:48AM +0900, Daniel Berger wrote:
> What's the difference between these two?
>

module Foo
   A = :Foo
   class Bar
     A = :Bar
   end
   class Bar::Baz
     A # => :Foo
   end
end

module Foo
   class Bar
      class Baz
        A # => :Bar
      end
   end
end

RUBY_VERSION # => "1.8.3"

--
Mauricio Fernandez