trouble with long

bearophile bearophileHUGS at lycos.com
Tue Jul 16 06:08:16 PDT 2013


eles:

> Don C.: "There's a root cause issue -- integer overflow is not 
> an error in general. The paper which bearophile keeps posting, 
> which he has apparently never read, shows quite convincingly
> that you cannot make it an error in a C-family language. There
> are just too many legitimate uses of integer wraparound.
>
> eg. int.max + 200 - 300 should not be an error."

See:
http://d.puremagic.com/issues/show_bug.cgi?id=9850

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list