Specify bitwidth in D

Matthias Pleh jens at konrad.net
Sun Apr 10 09:41:38 PDT 2011


in C++ we can specify the bitwidth in the declaration.
So we can optimaze memory usage.

unsigned int x    : 30;
unsigned int type :  2;

How can we do that in D?

°Matthias


More information about the Digitalmars-d-learn mailing list