Error: TypeInfo.equals is not implemented

bearophile bearophileHUGS at lycos.com
Sat Feb 8 06:15:55 PST 2014


Stanislav Blinov:

> opEquals should be const:
>
> struct Decimal(int precision, int scale){
> 	bool opEquals(T)(T d) const
> 		if (isInstanceOf!(Decimal, T))
> 	{
> 		return false;
> 	}
> }

DMD needs to give better error messages in such cases.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list