1 matches bool, 2 matches long
Mehrdad
wfunction at hotmail.com
Fri Apr 26 23:09:18 PDT 2013
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
More information about the Digitalmars-d
mailing list