xxxxxxxxxx
import std;
struct abc
{
union
{
ubyte bits;
mixin(bitfields!(
int, "a", 3,
int, "b", 3,
int, "c", 2,
));
}
}
void main()
{
abc a;
writeln(a.a_max); // 3?
writeln(a.b_max); // 3?
writeln(a.c_max); // 1?
a.a = 5;
}