Project

General

Profile

Actions

Bug #7670

closed

main.include should be private

Added by shugo (Shugo Maeda) over 11 years ago. Updated over 11 years ago.

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

Description

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

self.include Enumerable #=> no error

It should be private, shouldn't it?

Updated by matz (Yukihiro Matsumoto) over 11 years ago

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

Agreed.

Matz.

Actions #2

Updated by shugo (Shugo Maeda) over 11 years 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.
    [ruby-core:51293] [Bug #7670]

  • test/ruby/test_module.rb (test_top_include_is_private): a new test
    for the above change.

Actions

Also available in: Atom PDF

Like0
Like0Like0