[ruby-cvs:56014] nobu:r48864 (trunk): iseq.c: struct accessors

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Dec 16 15:18:28 JST 2014


nobu	2014-12-16 15:18:25 +0900 (Tue, 16 Dec 2014)

  New Revision: 48864

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

  Log:
    iseq.c: struct accessors
    
    * iseq.c (rb_method_for_self_aref, rb_method_for_self_aset): call
      accessor functions directly, not to be affected by [] and []=
      methods.  [ruby-core:66846] [Bug #10601]
    * struct.c (define_aref_method, define_aset_method): ditto.
    * vm_insnhelper.c (rb_vm_opt_struct_aref, rb_vm_opt_struct_aset):
      direct accessors of Struct.

  Modified files:
    trunk/ChangeLog
    trunk/iseq.c
    trunk/struct.c
    trunk/test/ruby/test_struct.rb
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list