Bug #7670

main.include should be private

Added by Shugo Maeda over 1 year ago. Updated over 1 year ago.

[ruby-core:51293]
Status:Closed
Priority:Normal
Assignee:Shugo Maeda
Category:core
Target version:2.0.0
ruby -v:ruby 2.0.0dev (2013-01-07 trunk 38725) [i686-linux] Backport:

Description

Module#include is private, but main.include seems to be public:

self.include Enumerable #=> no error

It should be private, shouldn't it?

Associated revisions

Revision 38731
Added by Shugo Maeda over 1 year ago

  • eval.c (Init_eval): main.include should be private.
    [Bug #7670]

  • test/ruby/testmodule.rb (testtopincludeis_private): a new test
    for the above change.

History

#1 Updated by Yukihiro Matsumoto over 1 year ago

  • Assignee changed from Yukihiro Matsumoto to Shugo Maeda

Agreed.

Matz.

#2 Updated by Shugo Maeda over 1 year ago

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

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


  • eval.c (Init_eval): main.include should be private.
    [Bug #7670]

  • test/ruby/testmodule.rb (testtopincludeis_private): a new test
    for the above change.

Also available in: Atom PDF