Feature #7251

using usings in usinged Module

Added by Akira Matsuda over 1 year ago. Updated over 1 year ago.

[ruby-dev:46326]
Status:Closed
Priority:Normal
Assignee:Shugo Maeda
Category:core
Target version:2.0.0

Description

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: https://gist.github.com/3985735 )


Related issues

Related to ruby-trunk - Feature #4085: Refinements and nested methods Closed 11/24/2010

Associated revisions

Revision 37399
Added by Shugo Maeda over 1 year ago

  • eval.c (rbusingmodule): using should be used indirectly. [Feature #7251]

History

#1 Updated by Akira Matsuda over 1 year ago

s/suspect/expect/

#2 Updated by Shugo Maeda over 1 year ago

  • Status changed from Open to Assigned

#3 Updated by Shugo Maeda over 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r37399.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • eval.c (rbusingmodule): using should be used indirectly. [Feature #7251]

Also available in: Atom PDF