On Tuesday, February 18, 2003, 11:56:41 PM, Yukihiro wrote:

> Hi,

> In message "Re: module This::Encompassing::That"
>     on 03/02/18, ts <decoux / moulon.inra.fr> writes:

|Y>> Do you worry about which namespace D searched in?  I guess it must be
|Y>> top level (not A nor B).
> |
> | Yes, my problem is with
> |
> |   class D
> |   end
> |
> |   module A
> |      class D
> |      end
> |   end
> |
> | if I'm right
> |
> |   class A::B < D
> |   end
> |
> | it's not the same than
> |
> |   module A
> |      class B < D
> |      end
> |   end

> Yes, you're right as always.  It should be treated as if

>   tmp = D
>   module A
>     class B < tmp
>     end
>   end

Isn't

  class A::B < ::D

equivalent here?

Gavin