union.sizeof

zabruk70 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 26 00:28:53 PDT 2017


On Sunday, 26 March 2017 at 07:18:14 UTC, ketmar wrote:
> i.e. what compiler does (roughly) is inserting anonymous fields 
> of the appropriate size *into* the container. for "inner" 
> aligning compiler inserts anonymous fields *between* other 
> fields. for "outer" aligning compiler just appends anonymous 
> field at the *end* of a data type, so data type size will met 
> align requirements.

Big thank!!


More information about the Digitalmars-d-learn mailing list