On Saturday, 27 April 2013 at 05:54:48 UTC, Luís Marques wrote:
Is this what some of you are asking for?bool a = true; // ok
Yes
bool b = false; // ok
Yes
bool c = 1; // error, no implicit conversion
Yes
bool c = getInt(); // error? ok?
Yes (error)
int x = 42;
if(x) { ... } // ok (doesn't this imply c =
Yes
getInt() ok too?
Yes
if(42) { ... } // ok
Yes
