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
If you want the latter, you have to
class A::B < A::D
end
matz.