c3c
c3c copied to clipboard
Compile time bitwise operators for bitstruct
bitstruct Flags : int {}
const Flags FLAGS_A = Flags {};
const Flags FLAGS_B = Flags {};
const Flags FLAGS_C = FLAGS_A | FLAGS_B;
^^^^^^^^^^^^^^^^^
Error: The expression must be a constant value.
Yes, this is not yet supported.
This should be fixed in the upcoming 0.5.4.
@cbuttner Does this work as expected now?
This works as it should. Thank you.