Forum: Ruby-dev [ruby-trunk - Feature #7251][Open] using usings in usinged Module

76a777ff80f30bd3b390e275cce625bc?d=identicon&s=25 matsuda (Akira Matsuda) (Guest)
on 2012-10-31 12:42
(Received via mailing list)
Issue #7251 has been reported by matsuda (Akira Matsuda).

----------------------------------------
Feature #7251: using usings in usinged Module
https://bugs.ruby-lang.org/issues/7251

Author: matsuda (Akira Matsuda)
Status: Open
Priority: Normal
Assignee: shugo (Shugo Maeda)
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: https://gist.github.com/3985735 )
76a777ff80f30bd3b390e275cce625bc?d=identicon&s=25 matsuda (Akira Matsuda) (Guest)
on 2012-10-31 12:55
(Received via mailing list)
Issue #7251 has been updated by matsuda (Akira Matsuda).


s/suspect/expect/
----------------------------------------
Feature #7251: using usings in usinged Module
https://bugs.ruby-lang.org/issues/7251#change-32096

Author: matsuda (Akira Matsuda)
Status: Open
Priority: Normal
Assignee: shugo (Shugo Maeda)
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: https://gist.github.com/3985735 )
C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 shugo (Shugo Maeda) (Guest)
on 2012-11-01 06:08
(Received via mailing list)
Issue #7251 has been updated by shugo (Shugo Maeda).

Status changed from Open to Assigned


----------------------------------------
Feature #7251: using usings in usinged Module
https://bugs.ruby-lang.org/issues/7251#change-32143

Author: matsuda (Akira Matsuda)
Status: Assigned
Priority: Normal
Assignee: shugo (Shugo Maeda)
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: https://gist.github.com/3985735 )
This topic is locked and can not be replied to.