digitalmars.D - Re: Operator overloading, structs
- bearophile <bearophileHUGS lycos.com> Jun 08 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
Jun 08 2009