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

ilya-stromberg ilya-stromberg-2009 at yandex.ru
Sun Nov 24 12:32:51 PST 2013


On Sunday, 24 November 2013 at 19:59:51 UTC, Walter Bright wrote:
> On 11/24/2013 11:17 AM, bearophile wrote:
>> From my experience that's quite bug-prone:
>> http://d.puremagic.com/issues/show_bug.cgi?id=3878
>
> I posted an objection there :-)

But we can provide a syntax sugar for this case as was suggested 
in #9801.


More information about the Digitalmars-d mailing list