d coder:

Why is the following allowed in D?

long a;
int b;

b += a; // Allowed -- no explicit cast
b = a + b; // Not allowed
b = a;      // Not allowed

Seems a bug of range analysis.

Bye,
bearophile

Reply via email to