DMD can implicitly convert class pointer to the bool. Is it bug or terrible feature?
deadalnix
deadalnix at gmail.com
Sun Nov 24 13:13:11 PST 2013
On Sunday, 24 November 2013 at 21:00:53 UTC, Maxim Fomin wrote:
> It is comparison with NULL and zero (I though it is obvious
> that the code snippet is written in C), because NULL is always
> zero by definition ("an integer constant expression with the
> value 0, or such an expression casted to void*"). If this is
> not the case, then implementation is broken. Which of them you
> are talking about?
http://c-faq.com/null/machexamp.html
More information about the Digitalmars-d
mailing list