"a[++i] = i" vs "a[i] = ++i"

bearophile bearophileHUGS at lycos.com
Fri Dec 20 17:00:22 PST 2013


aldanor:

> it would be nice if the compiler (at least) fired a warning 
> about this kind of things,

For reasons D doesn't like warnings, they are kept at a minimum. 
D prefers errors :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list