Inline aggregate types

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 1 12:57:13 PST 2016


On 12/01/2016 03:31 PM, Ethan Watson wrote:
> I'm binding to C++ objects where the meaningful default values require
> those packed values to have initial values. It's rather painful to get
> that working with the Phobos implementation.

The simplest way to go here is to accept an initializer for the entire 
ubyte/ushort/uint/ulong underlying the bitfields. -- Andrei


More information about the Digitalmars-d mailing list