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

Maxim Fomin maxim at maxim-fomin.ru
Mon Nov 25 03:12:11 PST 2013


On Monday, 25 November 2013 at 11:07:01 UTC, ilya-stromberg wrote:
>> int my_gobal_var;
>>
>> .my_global_var = 7;
>>
>> Is it possible?
>
> Sorry if I didn't explain idea properly.
>
> We can force using `.` before global variables. Almost 
> everybody agree that use global variables is bad idea, so 
> additional symbol looks acceptable.

And what to do with code already written? What exactly should be 
said to people who have to maintain the code? Do you volunteer to 
write a dmd/druntime/phobos pull?


More information about the Digitalmars-d mailing list