www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Operator overloading, structs

 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
Jun 08 2009