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 07:55:23 PST 2013
On Sunday, 24 November 2013 at 15:39:20 UTC, Maxim Fomin wrote:
> No way compiler could guess that you have bool f in mind.
Sorry if I didn't explain the example properly.
The `bool f` variable was in my code and it works correctly, but
compiler didn't put attention that I have identifiers shadowing
issue. After big code refactoring I wrongly commented the `bool
f` variable.
So, nothing happens if compiler provides identifier shadowing
error - I'll just rename variable. Is it possible to implement?
More information about the Digitalmars-d
mailing list