bit fields

Walter Bright newshound2 at digitalmars.com
Wed Sep 1 04:55:44 UTC 2021


On 8/30/2021 6:04 PM, Paul Backus wrote:
> Don't use bitfields for anything that needs to have a stable ABI. They're not 
> even guaranteed to have the same layout when using the same compiler on 
> different platforms [1], much less between different languages.

Things are pretty consistent if sticking with simple int/unsigned bit fields.


More information about the Digitalmars-d mailing list