[ruby-trunk - Feature #7251][Open] using usings in usinged Module

Issue #7251 has been reported by matsuda (Akira M.).


Feature #7251: using usings in usinged Module

Author: matsuda (Akira M.)
Status: Open
Priority: Normal
Assignee: shugo (Shugo M.)
Category: core
Target version: 2.0.0

I suspect Kernel#using to using all the already usinged Refinements in
usinged Module. For example:

module X
refine Fixnum do
def foo; p :foo; end
end
end

module Y
refine Fixnum do
def bar; p :bar; end
end
end

module Z
using X
using Y
end

class Foo
using Z
p 1.foo
p 1.bar
end

(original gist here: using example · GitHub )

Issue #7251 has been updated by matsuda (Akira M.).

s/suspect/expect/

Feature #7251: using usings in usinged Module

Author: matsuda (Akira M.)
Status: Open
Priority: Normal
Assignee: shugo (Shugo M.)
Category: core
Target version: 2.0.0

I suspect Kernel#using to using all the already usinged Refinements in
usinged Module. For example:

module X
refine Fixnum do
def foo; p :foo; end
end
end

module Y
refine Fixnum do
def bar; p :bar; end
end
end

module Z
using X
using Y
end

class Foo
using Z
p 1.foo
p 1.bar
end

(original gist here: using example · GitHub )

Issue #7251 has been updated by shugo (Shugo M.).

Status changed from Open to Assigned


Feature #7251: using usings in usinged Module

Author: matsuda (Akira M.)
Status: Assigned
Priority: Normal
Assignee: shugo (Shugo M.)
Category: core
Target version: 2.0.0

I suspect Kernel#using to using all the already usinged Refinements in
usinged Module. For example:

module X
refine Fixnum do
def foo; p :foo; end
end
end

module Y
refine Fixnum do
def bar; p :bar; end
end
end

module Z
using X
using Y
end

class Foo
using Z
p 1.foo
p 1.bar
end

(original gist here: using example · GitHub )