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

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


On Sunday, 14 April 2019 at 08:37:26 UTC, Walter Bright wrote:
> On 4/13/2019 5:27 PM, Timon Gehr wrote:
>> My point exactly. x & 1 is not the best implementation of 
>> isOdd for all integer-representing types of x,
>
> It is for all the basic integral types in D, and I would expect 
> anyone implementing their own integral type to make x&1 work.

I personally would expect bitwise operations to operate on the 
underlying bit pattern instead of its two's-complement equivalent 
representation.


More information about the Digitalmars-d mailing list