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 23:34:25 PST 2013


On Tuesday, 26 November 2013 at 07:20:47 UTC, Walter Bright wrote:
> On 11/25/2013 4:05 PM, Andrei Alexandrescu wrote:
>> On 11/25/13 1:39 AM, ilya-stromberg wrote:
>>> int my_gobal_var;
>>>
>>> .my_global_var = 7;
>>>
>>> Is it possible?
>>
>> Doesn't that work already?
>
> Sure, but only because I saw the suggestion and traveled back 
> in time to implement it!

I repeat, sorry if I didn't explain idea properly, see:
http://forum.dlang.org/thread/mydipbvhfjgvjybcyeyn@forum.dlang.org?page=6#post-sffdyogipcanorahdtte:40forum.dlang.org


More information about the Digitalmars-d mailing list