Jack Nagel 10949ad75d Fix some #eql? correctness issues
The implementation of #eql? and #hash should ensure that if a.eql?(b),
then a.hash == b.hash, but #eql? itself should not *depend* on #hash.

For example, given

  class Thingy
    def eql?
      instance_of?(other.class) && hash == other.hash
    end

    def hash
      [name, *tags].hash
    end
  end

if #hash produces a collision for different values of [name, *tags], two
Thingy objects will appear to be eql?, even though this is not the case.
Instead, #eql? should depend on the equality of name and tags directly.
2013-06-27 01:18:45 -05:00
..
2012-06-16 11:43:43 -05:00
2010-04-06 08:27:10 -07:00
2012-11-17 22:59:06 -06:00
2013-05-20 22:34:53 -05:00
2013-04-07 20:59:49 -05:00
2013-04-01 12:15:29 -05:00
2013-04-10 22:27:56 -05:00
2013-04-07 20:59:52 -05:00
2013-06-07 20:57:07 -05:00
2013-06-14 10:34:17 -05:00
2013-06-22 21:34:03 -05:00
2012-07-04 22:47:34 -05:00
2012-07-04 22:47:34 -05:00
2013-04-13 20:07:14 -05:00
2013-06-26 09:45:32 -07:00
2013-04-13 18:23:06 -05:00