http://d.puremagic.com/issues/show_bug.cgi?id=9999
--- Comment #7 from Martin Nowak <[email protected]> 2013-04-28 04:05:07 PDT --- (In reply to comment #6) > If you simply made it so that integer literals didn't implicitly convert to > bool, that would solve this particular problem. There's really no need to have > them implicitly convert to bool as that's what true and false are for. That would solve the problem and I don't see any drawback. > But it _would_ mean that integer literals behaved differently from actual > integers > (though I am firmly in the camp who thinks that integers shouldn't implicitly > convert to bool in the first place). > Integers do NOT implicitly convert to bool (see comment 5), but they can be used as http://dlang.org/statement.html#IfCondition which is kind of an explicit cast. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
