From: Ryan Davis Date: 2009-01-19T19:21:59+09:00 Subject: [ruby-core:21433] Re: Proposal: Module#copy_method On Jan 19, 2009, at 00:10 , Yukihiro Matsumoto wrote: > This implementation can easily cause segmentation fault, since many C > implemented method does not check type of their receivers. Try > > class Foo > copy_method Bignum, :odd? > end > Foo.new.odd? > > for example. The issue is more difficult than it seems. I've had > similar issue when we implemented Method#bind, this one is even > tougher. Isn't it sufficient to not let cfunc nodes be copied? Or don't worry about it and trust the developers. To quote you on the :!= issue: > It's intentional. Ruby's flexibility sometimes allows you to do some > nasty things. Ruby consider you smart enough to avoid such > contradiction. couldn't that work here?