Overload object comparison when adding to a set in Julia?
<p>Is there a way to overload how <code>Base.Set</code> does its object comparisons in Julia?</p>

<p>I tried overloading <code>isequal</code> and <code>==</code>, but my objects are still marked as different when they should be the same.</p>

<p>E.g.</p>

<pre><code>type Test
    x
    y
end

function ==(a::Test, b::Test)
    return a.x == b.x &amp;&amp; a.y == b.y
end

Set([Test(2,3), Test(2,3)])
</code></pre>

<p>gives</p>

<pre><code>Set([Test(2,3),Test(2,3)])
</code></pre>