Operator overloading, structs

bearophile bearophileHUGS at lycos.com
Mon Jun 8 10:13:24 PDT 2009


Don:
> On second thoughts, y = x.toLong or y = to!(long)(x) is probably better. 
> Casts are evil, implicit casts even more so.

I have seen you have added opEquals(int) and the like, thank you.
But I don't see an efficient way to convert to int/long yet.

Bye,
bearophile



More information about the Digitalmars-d mailing list