opAssign overload question

bearophile bearophileHUGS at lycos.com
Thu Apr 25 12:48:24 PDT 2013


Ali Çehreli:

> If bool is considered to be more specialized than long, then 
> the compiler is behaving according to spec. It is very 
> confusing indeed.

In my code I've shown that 1 matches the bool function and 10 
matches the long function. Is this acceptable? It seems a bit 
ridiculous.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list