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 06:02:42 PST 2013
On Sunday, 24 November 2013 at 13:57:22 UTC, Maxim Fomin wrote:
> This is neither bug not a terribale feature. Have you coded in
> C?
Yes, only a little. I like D because it dissallow most of
dangerous abbilities. We already have `is` operator for pointer
comparison. Class doesn't provide cast to bool. So, why it's
allowed?
More information about the Digitalmars-d
mailing list