ruby-changes:34239
From: zzak <ko1@a...>
Date: Tue, 3 Jun 2014 01:38:46 +0900 (JST)
Subject: [ruby-changes:34239] zzak:r46320 (trunk): * README.EXT: [DOC] Add rb_call_super when subclassing from @robin850
zzak 2014-06-03 01:38:31 +0900 (Tue, 03 Jun 2014) New Revision: 46320 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46320 Log: * README.EXT: [DOC] Add rb_call_super when subclassing from @robin850 [Fixes GH-623] https://github.com/ruby/ruby/pull/623 [ci skip] Modified files: trunk/ChangeLog trunk/README.EXT Index: README.EXT =================================================================== --- README.EXT (revision 46319) +++ README.EXT (revision 46320) @@ -412,6 +412,11 @@ func has to take the klass as the argume https://github.com/ruby/ruby/blob/trunk/README.EXT#L412 allocated instance. This instance should be as empty as possible, without any expensive (including external) resources. +If you are overriding an existing method of any ancestor of your class, +you may rely on: + + VALUE rb_call_super(int argc, const VALUE *argv) + === Constant Definition We have 2 functions to define constants: Index: ChangeLog =================================================================== --- ChangeLog (revision 46319) +++ ChangeLog (revision 46320) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jun 3 01:34:59 2014 Zachary Scott <e@z...> + + * README.EXT: [DOC] Add rb_call_super when subclassing from @robin850 + [Fixes GH-623] https://github.com/ruby/ruby/pull/623 + Mon Jun 2 17:14:49 2014 Koichi Sasada <ko1@a...> * vm.c (ruby_vm_destruct): remove useless call of -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/