align(n) outside struct useless?

kinke via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Feb 20 15:12:52 PST 2017


On Monday, 20 February 2017 at 22:45:09 UTC, Adam D. Ruppe wrote:
> I don't
> believe it does anything (except perhaps pad bytes again) for a 
> stack-defined struct.

LDC does respect explicit type-alignments when allocating 
instances on the stack. The instances are obviously padded to 
their full size.


More information about the Digitalmars-d-learn mailing list