union.sizeof
zabruk70 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 25 15:54:30 PDT 2017
Thank you ag0aep6g and ketmar!!
I will use additional outside align.
I want packing inside, you are right.
But i check result size with assert() and failed.
But for clearness...
I was thinked, that align not changes SIZE, but changes LOCATION.
I was thinked, that "align(X) union Union1"
just force compiler to place Union1 on boundaries of X bytes...
More information about the Digitalmars-d-learn
mailing list