food for thought - swift 5 released - bottom types, string interpolation, and stuff.

Julian julian.fondren at gmail.com
Sun Apr 14 15:01:22 UTC 2019


On Sunday, 14 April 2019 at 13:28:13 UTC, lithium iodate wrote:
> On Sunday, 14 April 2019 at 13:23:27 UTC, Adam D. Ruppe wrote:
>> On Sunday, 14 April 2019 at 13:19:22 UTC, lithium iodate wrote:
>>> I personally would expect bitwise operations to operate on 
>>> the underlying bit pattern instead of its two's-complement 
>>> equivalent representation.
>>
>> Aren't those the same thing?
>
> For the inbuilt integral types? Sure. For custom integral 
> types? Not necessarily.
> When dealing with protocols and compression you might get into 
> the situation of defining an integer with some special coding 
> as internal representation.

How would adding isOdd to phobos change this?


More information about the Digitalmars-d mailing list