Project

General

Profile

Actions

Feature #9909

open

why shouldn't constant lookup check the nesting of module's name

Added by rits (First Last) over 10 years ago. Updated over 10 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:62962]

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

Also available in: Atom PDF

Like0
Like0