1 matches bool, 2 matches long

Timon Gehr timon.gehr at gmx.ch
Sun Apr 28 16:11:50 PDT 2013


On 04/29/2013 12:51 AM, Mehrdad wrote:
> On Sunday, 28 April 2013 at 22:25:43 UTC, Timon Gehr wrote:
>> On 04/28/2013 11:51 PM, Mehrdad wrote:
>>> On Sunday, 28 April 2013 at 21:29:06 UTC, Timon Gehr wrote:
>>>> On 04/28/2013 10:54 PM, Mehrdad wrote:
>>>>> Isn't that self-contradictory?
>>>
>>>> He is saying bool is an integral type in D. (i.e. it can be promoted
>>>> to 'int' in order to support integer arithmetic.)
>>>
>>> I thought we just established that boolean logic isn't integer logic?
>>
>> Please make sure your statements make sense.
>
>
> Huh?
>
> Walter says bool is an integer,

Certainly not. bool is a type. 2 is an integer.

He says that bool is an integral type (which has a very specific 
meaning, lined out above.)

> but he understands that boolean variables don't follow integer logic.
>
> That makes no sense, it's like saying "I understand the sky is blue, but
> the sky is red."
>

Check his statements again, I guess.

>
> What part of this is not making sense to you?

Eg. "integer logic".


More information about the Digitalmars-d mailing list