Compile-Time Size Checking of Enum Members of std.bitmanip.bitfields

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 19 03:23:10 PST 2015


Nordlöw:

> wouldn't it be better to detect the mismatches between enum 
> bit-sizes and bitfield lengths at compile-time instead of at 
> run-time?

File an enhancement and/or submit a Phobos patch.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list