ruby-changes:34357
From: nobu <ko1@a...>
Date: Sun, 15 Jun 2014 22:21:24 +0900 (JST)
Subject: [ruby-changes:34357] nobu:r46438 (trunk): vm_method.c: separate ID selection
nobu 2014-06-15 22:21:21 +0900 (Sun, 15 Jun 2014) New Revision: 46438 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46438 Log: vm_method.c: separate ID selection * vm_method.c (rb_method_entry_make): separate selection of IDs to be private from condition of method to be defined. Modified files: trunk/vm_method.c Index: vm_method.c =================================================================== --- vm_method.c (revision 46437) +++ vm_method.c (revision 46438) @@ -261,11 +261,15 @@ rb_method_entry_make(VALUE klass, ID mid https://github.com/ruby/ruby/blob/trunk/vm_method.c#L261 } if (!FL_TEST(klass, FL_SINGLETON) && type != VM_METHOD_TYPE_NOTIMPLEMENTED && - type != VM_METHOD_TYPE_ZSUPER && - (mid == idInitialize || mid == idInitialize_copy || - mid == idInitialize_clone || mid == idInitialize_dup || - mid == idRespond_to_missing)) { - noex = NOEX_PRIVATE | noex; + type != VM_METHOD_TYPE_ZSUPER) { + switch (mid) { + case idInitialize: + case idInitialize_copy: + case idInitialize_clone: + case idInitialize_dup: + case idRespond_to_missing: + noex |= NOEX_PRIVATE; + } } rb_check_frozen(klass); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/