Strange calculation problem

bearophile bearophileHUGS at lycos.com
Wed Aug 26 10:33:30 PDT 2009


Steven Schveighoffer:
> This is not a bug, and will probably not be changed (it's been this way  
> since C).  It is impossible for the compiler to know whether you wanted  
> sign extension or not, as some code depends on sign extension.

I'd like overflow errors bot at compile and run-time, to avoid such traps too.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list