structure alignment

Adam Sansier via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 11 17:20:31 PDT 2016


I need to align every member of every struct in a module. I can't 
simply add align(n) inside every struct because that seems 
ridiculous. I could search and paste, but then D is missing a 
relatively important aspect of alignment.

I have about 100 struct's to align, member wise. From what I've 
read, align(n){ struct x; } only aligns the struct itself, is 
this true? Is there a way to set global alignment for members per 
module or per scope?








More information about the Digitalmars-d-learn mailing list