Kagamin wrote:
Matthias Walter Wrote:

bool opEquals(Tdummy=void)(ref const BigInt y) const
bool opEquals(T: int)(T y) const

The only working sigature for array-of-structs-comparison to work is

bool opEquals(ref const BigInt y) const

But this removes the ability to compare against ints.

Why are they templated to begin with? Just for the heck of it?

bool opEquals(ref const BigInt y) const
bool opEquals(long y) const

No, because then it fails for ulong.
It's those bloody C implicit conversions.

Reply via email to