From: Maurizio De Santis Date: 2010-08-01T21:16:05+09:00 Subject: Re: what is the correct way to extend native methods? Brian Candler wrote: > What ruby are you using? I'm using ruby 1.9.2dev (2010-07-11 revision 28613) [x86_64-linux] , maybe this is the reason... David A. Black wrote: > They are indeed the same method: > > rb_define_method(rb_cArray, "[]", rb_ary_aref, -1); > rb_define_method(rb_cArray, "slice", rb_ary_aref, -1); > uhm... but if they are the same method, why aliasing the one, the other does not become aliased? do I have to alias both methods?? and, if yes, how??? :) I've tried, but with no success... -- Posted via http://www.ruby-forum.com/.