Wouldn't this be better with bitfields?
Walter Bright
newshound2 at digitalmars.com
Sun Jul 7 03:58:50 UTC 2024
On 7/6/2024 11:05 AM, Dukc wrote:
> Actually this is an analogy I want to push. Ask yourself, why is `long` defined
> as exactly 64 bits in D? Why isn't it defined to have the same size as
> associated C `long`?
Because a 32 bit C long is useless. It's a vestigial remainder from 16 bit
programming.
Sensible C programmers use "long long" instead.
More information about the Digitalmars-d
mailing list