Struct with no alignment ?

tsalm tsalm at
Sat Oct 11 09:53:35 PDT 2008


Is there a way to use a sort of struct which is not submit to alignment ?

For example :

struct MyStruct { long a; int b; }

have a size of 16 bytes.
But I only need 12.

Is there a way to have a sort of struct without alignment's system ?

Thanks in advance,

More information about the Digitalmars-d-learn mailing list