From: Its Me Date: 2004-03-03T01:49:43+09:00 Subject: Re: UnboundMethod#hash apparently broken in 1.8.1 "Yukihiro Matsumoto" wrote in message > > In message "Re: UnboundMethod#hash apparently broken in 1.8.1" > on 04/03/02, Mark Hubbart writes: > > |To me, at least, this behavior is unexpected. I would expect it to > |return the same object each time; or at least objects with the same > |hash value. > > I think you're expecting too much. ;-) > I'm curious why you expect so. > > matz. Imho, they should be the same object. Why should Foo.instance_method (:bar).id Foo.instance_method(:bar).id return two different ids? What if I want to extend class UnboundMethod so that I can add custom meta-data to UnboundMethod objects? Foo.instance_method(:bar).arg_list = [:arg1, :arg2, :arg3]