How do you define the `==` operator for a new type?

If I try and define the `isequal` operator, that definition does not apply 
to '==':

import Base.isequal

type inty
    insideint :: Int
end
isequal(a :: inty, b :: Int) = a.insideint == b

inty(5) == 5        # false on Julia Version 0.4.0-dev+6858, Commit dc2be6f 
(2015-08-20 16:45 UTC)
isequal(inty(5), 5) # true

Reply via email to