DMD can implicitly convert class pointer to the bool. Is it bug or terrible feature?
ilya-stromberg
ilya-stromberg-2009 at yandex.ru
Mon Nov 25 03:25:08 PST 2013
On Monday, 25 November 2013 at 11:12:12 UTC, Maxim Fomin wrote:
> 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?
OK, I see.
More information about the Digitalmars-d
mailing list