From: Yukihiro Matsumoto Date: 2011-01-10T10:14:34+09:00 Subject: [ruby-core:34283] Re: [Ruby 1.9-Feature#4254][Open] Allow method transplanting Hi, In message "Re: [ruby-core:34281] Re: [Ruby 1.9-Feature#4254][Open] Allow method transplanting" on Mon, 10 Jan 2011 09:37:07 +0900, "Jonas Pfenniger (zimbatm)" writes: |Are you thinking of a method is defined in C that uses Data_Wrap_Struct ? No, I am thinking of methods defined for modules, that have no assumption of the type of receivers. Ruby methods in C does not check the type of the receiver, so that if you move a method from String class to, say, Array, the interpreter will crash when you call the transplanted method. matz.