I agree Constant lookup is not easy in ruby.

What I use to do to avoid surprises is to request each external constant by
its full path:

```
N=0

module A; end

module A::B
  def self.f
    ::A::N
  end
end

A::B.f # => NameError: uninitialized constant A::N

module A; N = 1; end

A::B.f # => 1
```
(supressed text/html)
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>