From: John W Higgins Date: 2009-07-23T01:41:39+09:00 Subject: Re: Incorrect -0.0.hash - Ruby bug. --0016e6471a8e275f98046f4e0b58 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Morning Thomas, On Wed, Jul 22, 2009 at 9:24 AM, Thomas B. wrote: > Hello. I just found a bug in Ruby, version 1.9.1p0, Windows. > > In the rdoc to Object#hash we read > (http://ruby-doc.org/core/classes/Object.html#M000337): > > "This function must have the property that a.eql?(b) implies a.hash == > b.hash." > Actually Float overrides both #eql? and #hash so the contract is not applicable inside that class. Is that the best option in the world?? - probably not - but that would make it a non bug in theory. John --0016e6471a8e275f98046f4e0b58--