struct field alignment

Walter Bright newshound2 at digitalmars.com
Sun Oct 17 19:00:49 PDT 2010


http://www.digitalmars.com/d/2.0/attribute.html#align

Over time, it has become clear to me that there are only two useful alignments:

   align     // set to whatever the C ABI alignment is
   align(1)  // pack everything in, no alignment padding

I think any other alignments should be deprecated. Note that with align(1), any 
alignment is achievable simply by adding in byte fields where desired.


More information about the Digitalmars-d mailing list