1 matches bool, 2 matches long

Maxim Fomin maxim at maxim-fomin.ru
Fri Apr 26 00:07:16 PDT 2013


On Friday, 26 April 2013 at 06:01:27 UTC, Walter Bright wrote:
> On 4/25/2013 10:49 PM, Ali Çehreli wrote:
>> It certainly behaves that way but it isn't an integer type and 
>> that's why it is
>> unintuitive.
>
> But it is an integer type.
>

Regarding bool type as integer type is C atavism and should be 
abandoned. This leads to comic sitatuation presented in the 
thread when changing literal to lvalue or using different enums 
changes overloading matching.


More information about the Digitalmars-d mailing list