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

Namespace rswhite4 at googlemail.com
Tue Nov 26 03:12:11 PST 2013


On Tuesday, 26 November 2013 at 10:43:57 UTC, ilya-stromberg 
wrote:
> On Tuesday, 26 November 2013 at 09:25:56 UTC, bearophile wrote:
>> While a lint is useful for some purposes (like verifying the D 
>> code doesn't have logically wrong indentations), there are 
>> some things that are probably better addressed in the language.
>
> So, we have a few suggestions in this thread like:
> 1) disable shadowing class members
> 2) disable shadowing global variables
> 3) enforce using `.` before global variables
>
> What our next step? Shall we add Bugzilla issue or something 
> else?

Let us vote. I am against 1 .. 3


More information about the Digitalmars-d mailing list