arbitrary bitsize of variables

dominik aha at aha.com
Sat Sep 29 07:35:10 PDT 2007


Is it possible in D to do something like this (in C++):

struct Testor {
     int small_int: 5;
     int even_smaller_int: 3;
 };

this basically says make one integer of 5 bit size, and other of 3 bit 
size.. whole structure is 8bits long 




More information about the Digitalmars-d-learn mailing list