bigint

Don nospam at nospam.com
Sun Nov 28 11:53:28 PST 2010


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.


More information about the Digitalmars-d-learn mailing list