1 matches bool, 2 matches long
Mehrdad
wfunction at hotmail.com
Sun Apr 28 13:58:52 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.
Walter, you've confused "Boolean arithmetic" with "binary
arithmetic".
Boolean arithmetic: 1 + 1 = 1
Binary arithmetic: 1 + 1 = 0
"bool" means Boolean value, "bit" means binary integer.
The entire confusion in this thread is because you're mixing up
the two.
More information about the Digitalmars-d
mailing list