5. Align attribute. http://dlang.org/attribute.html#alignstruct S { align(4) byte a; // placed at offset 0 align(4) byte b; // placed at offset 1 } Explain this please.
align is a huge mess imo. "It matches the corresponding C compiler behavior"So what's the point of align in the first place, if the compiler does what it wants anyway, see above?
The only thing that really works is align(1) struct S {...} for packed structs.