1 matches bool, 2 matches long

deadalnix deadalnix at gmail.com
Thu Apr 25 17:41:33 PDT 2013


On Friday, 26 April 2013 at 00:35:33 UTC, Walter Bright wrote:
>> Is bool more specialized than long
>
> Yes, because a bool can be implicitly converted to a long, but 
> a long cannot be implicitly converted to a bool.

As we have bool literals as true and false, I don't think 1 
should match bool in the first place.


More information about the Digitalmars-d mailing list