bit fields

Walter Bright newshound2 at digitalmars.com
Wed Sep 1 04:53:15 UTC 2021


On 8/30/2021 3:45 PM, TheGag96 wrote:
> I think I may be experiencing a bug in a betterC project of mine as a result of 
> me assuming that `bitfields` is doing the same thing as gcc would...! Is there a 
> way I can get things synced up on at least one platform in the meantime?

The ImportC bit fields will be in the next dmd beta.

Until D itself gets bit fields, the thing to do will be to declare the bit field 
struct in a separate .c file, and import it.

Otherwise, the only way is to implement your own using get/set member functions.


More information about the Digitalmars-d mailing list