Bitfields?
jkpl via Digitalmars-d
digitalmars-d at puremagic.com
Sat Dec 31 00:05:11 PST 2016
On Friday, 30 December 2016 at 13:45:23 UTC, Martin wrote:
> Are there any C-like bitfields in D?
>
> Yes - How can I use them?
> No - What could be used in their stead?
If you're okay with dependencies and if you use DUB there's this
very decent wrapper called EnumSet:
- https://code.dlang.org/packages/iz
-
https://github.com/BBasile/iz/blob/master/import/iz/enumset.d#L226
More information about the Digitalmars-d
mailing list