TransGirlCodes / Phylogenetics.jl

The Julia package for analysis of evolution and phylogeny
Other
6 stars 8 forks source link

provide == as well as isequal for Julia 0.3 #6

Closed stevengj closed 10 years ago

stevengj commented 10 years ago

Currently, you are providing an isequal method for various types (e.g. Phylogeny). In Julia 0.3, you will also need to provide ==. See JuliaLang/julia#6833.

(In Julia 0.2, == called isequal by default, so providing isequal was enough. In Julia 0.3, however, these two functions are swapped: isequal calls == by default. So overriding isequal is not enough to make things like != or == work. In order to remain backward-compatible with Julia 0.2, you will need to provide both methods.)

prcastro commented 10 years ago

Can we close this bug?