DMD can implicitly convert class pointer to the bool. Is it bug or terrible feature?

bearophile bearophileHUGS at lycos.com
Tue Nov 26 09:10:57 PST 2013


Andrei Alexandrescu:

> The problem is "you" who added the global and "you" whose code 
> is broken may be in fact two different people.

When you have code written by another person, and you add a 
global variable that causes shadowing errors elsewhere, you 
choose another variable name. What problems is this going to 
cause?

Bye,
bearophile


More information about the Digitalmars-d mailing list