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

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Nov 26 09:12:22 PST 2013


On 11/26/13 9:10 AM, bearophile wrote:
> 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?

Someone else adds a global to the code they wrote, with which you build. 
Aren't you working in a team?

Andrei



More information about the Digitalmars-d mailing list