Regarding the proposed Binray Literals Deprecation
Walter Bright
newshound2 at digitalmars.com
Tue Sep 13 20:43:44 UTC 2022
On 9/13/2022 1:06 PM, Steven Schveighoffer wrote:
> If I wanted to specify an "every third bit set" mask, in hex it would be
> `0x924924924...`. But in binary it is `0b100100100100...`. The second version is
> immediately clear what it is, whereas the first is not.
Is it? How do you know it didn't overflow the int and create a long? How do you
know you filled up the int?
It's pretty clear the hex one is a long.
More information about the Digitalmars-d
mailing list