opImplicitCast/opImplicitCastFrom

Jason House jason.james.house at gmail.com
Tue Oct 28 06:38:36 PDT 2008


Don Wrote:

> bearophile wrote:
> > In a modern language it's probably good for ALL integral numeric types to be range checked 
> 
> I've noticed you've argued for range checking on integral types many 
> times. Have you found overflow to be a common bug?
> IE, is your comment mainly based on experience, or mainly on theory?

I hit an overflow bug in my D code 2 weeks ago. An intermediate value overflowed. 

> 
> I ask this because I've very rarely encountered that type of bug.
> (It could be that it occurs frequently in some problem domains; maybe we 
> could work out what they are).




More information about the Digitalmars-d mailing list