[ruby-cvs:51525] nobu:r44380 (trunk): proc.c: make method by define_method public

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Dec 24 16:28:14 JST 2013


nobu	2013-12-24 16:28:11 +0900 (Tue, 24 Dec 2013)

  New Revision: 44380

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44380

  Log:
    proc.c: make method by define_method public
    
    * proc.c (rb_mod_define_method): consider visibility only if self
      in the caller is same as the receiver, otherwise make public as
      well as old behavior.  [ruby-core:57747] [Bug #9005]
      [ruby-core:58497] [Bug #9141]
    * vm.c (rb_vm_cref_in_context): return ruby level cref if self is
      same.

  Modified files:
    trunk/ChangeLog
    trunk/proc.c
    trunk/test/ruby/test_method.rb
    trunk/vm.c


More information about the ruby-cvs mailing list