Actions
Feature #9909
openwhy shouldn't constant lookup check the nesting of module's name
Status:
Open
Assignee:
-
Target version:
-
Description
module A
module B
end
end
above, B will have access to A's constants
but below, it won't
module A::B
end
is there a reason why the nesting of the name should not be part of the constant resolution algorithm?
when adding or reopening (deeply) nested modules/classes the :: syntax would be preferable, but you lose constant resolution
Updated by kernigh (George Koehler) over 10 years ago
See discussion in feature #6810.
Actions
Like0
Like0