Hi,
In message "[ruby-talk:13480] Re: Method and Proc equality"
on 01/04/04, Dave Thomas <Dave / PragmaticProgrammer.com> 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.