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

lithium iodate whatdoiknow at doesntexist.net
Sun Apr 14 13:28:13 UTC 2019


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.


More information about the Digitalmars-d mailing list