From: matz@... (Yukihiro Matsumoto) Date: 2001-04-05T00:00:35+09:00 Subject: [ruby-talk:13490] Re: Method and Proc equality Hi, In message "[ruby-talk:13480] Re: Method and Proc equality" on 01/04/04, Dave Thomas writes: |> f.method(:bar) == f.method(:bar) |> f.method(:bar).to_proc == f.method(:bar).to_proc | |Neither class Method nor class Proc implement '==', so it defaults to |Object's version of ==, which tests based on object identity. 1.7.0 provides Proc#==. But the results are still both false. methods and procs are generated everytime, so that equality is not assured. matz.