1 matches bool, 2 matches long

kenji hara k.hara.pg at gmail.com
Sun Apr 28 14:41:29 PDT 2013


Yes, as Andrei mentioned, it is sometimes useful. But, at least during
overload resolution, it must not occur.

Kenji Hara


2013/4/29 Timon Gehr <timon.gehr at gmx.ch>

> On 04/28/2013 11:22 PM, Mehrdad wrote:
>
>> On Sunday, 28 April 2013 at 21:17:39 UTC, Walter Bright wrote:
>>
>>> On 4/28/2013 1:58 PM, Mehrdad wrote:
>>>
>>>> The entire confusion in this thread is because you're mixing up the two.
>>>>
>>>
>>> I know exactly what you're talking about, and I haven't seen any
>>> confusion from other posters, either.
>>>
>>
>>
>> If I just told you why Boolean arithmetic isn't integer arithmetic, and
>> you know exactly what I'm talking about, then why do you say Booleans
>> are integers?
>>
>> 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.)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130429/c84202c7/attachment.html>


More information about the Digitalmars-d mailing list