Forum: Ruby-core [ruby-trunk - Bug #7670][Open] main.include should be private

C4e88907313843cf07f6d85ba8162120?d=identicon&s=25 shugo (Shugo Maeda) (Guest)
on 2013-01-07 08:08
(Received via mailing list)
Issue #7670 has been reported by shugo (Shugo Maeda).

----------------------------------------
Bug #7670: main.include should be private
https://bugs.ruby-lang.org/issues/7670

Author: shugo (Shugo Maeda)
Status: Open
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-01-07 trunk 38725) [i686-linux]


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

  self.include Enumerable  #=> no error

It should be private, shouldn't it?
0ec4920185b657a03edf01fff96b4e9b?d=identicon&s=25 matz (Yukihiro Matsumoto) (Guest)
on 2013-01-07 11:05
(Received via mailing list)
Issue #7670 has been updated by matz (Yukihiro Matsumoto).

Assignee changed from matz (Yukihiro Matsumoto) to shugo (Shugo Maeda)

Agreed.

Matz.

----------------------------------------
Bug #7670: main.include should be private
https://bugs.ruby-lang.org/issues/7670#change-35265

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


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

  self.include Enumerable  #=> no error

It should be private, shouldn't it?
This topic is locked and can not be replied to.