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

Reply via email to