struct field alignment
Trass3r
un at known.com
Thu Oct 21 15:02:45 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.
Isn't the first case unnecessary if C ABI alignment is the default one
anyway?
More information about the Digitalmars-d
mailing list