From: Yukihiro Matsumoto Date: 2009-09-26T20:49:48+09:00 Subject: [ruby-core:25793] Re: [Bug #1898] Method#== for Methods with the Same Body Hi, In message "Re: [ruby-core:25755] [Bug #1898] Method#== for Methods with the Same Body" on Fri, 25 Sep 2009 06:08:40 +0900, Marc-Andre Lafortune writes: |# OK so far. The following currently return false, but. |# it might be preferable if they returned true. What do you think? |a.method(:proc1 ) == a.method(:proc2 ) # ==> ??? |a.method(:block1 ) == a.method(:block2 ) # ==> ??? |a.method(:proc1 ) == a.method(:block1 ) # ==> ??? Those makes sense. I will change the methods from same proc/block to be equal. |a.method(:missing ) == a.method(:missing ) # ==> ??? They are proc objects generated on-the-fly, so that it's difficult to make them equal. matz.