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

Posted by 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?
Posted by 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?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.