Deprecate implicit `int` to `bool` conversion for integer literals

Ola Fosheim Grøstad ola.fosheim.grostad+dlang at gmail.com
Sun Nov 12 17:04:23 UTC 2017


On Sunday, 12 November 2017 at 16:04:59 UTC, Temtaime wrote:
> There's no force change.
> if explicitly converts cond to bool.

Yes, but that is a flaw IMO. E.g. NaN will convert to true.



More information about the Digitalmars-d mailing list