From: Mark Hubbart Date: 2004-03-02T02:24:05+09:00 Subject: Re: UnboundMethod#hash apparently broken in 1.8.1 On Mar 1, 2004, at 5:14 AM, Tim Sutherland wrote: >> I'm not sure why you describe it as broken. Can you explain >> a little further? > > I think he means because "a == b" but "!a.eql?(b)" and "a.hash != > b.hash". > It's not a bug, just a lack of a feature. irb(main):006:0> class Foo;def bar;end;end => nil irb(main):007:0> Foo.instance_method(:bar).hash => 187786 irb(main):008:0> Foo.instance_method(:bar).hash => 170366 irb(main):009:0> Foo.instance_method(:bar).hash => 155876 irb(main):010:0> Foo.instance_method(:bar).hash => 139386 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. --Mark