[Issue 8355] struct's sizeof has bug

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 7 16:11:44 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8355



--- Comment #4 from Walter Bright <bugzilla at digitalmars.com> 2012-07-07 16:11:40 PDT ---
align inside sets the alignment of the fields. align outside sets the alignment
of the instance as a single block.

So, you'll need both to get an unaligned size.

For example, consider an array of S. It should be an even multiple of the size
of S. So consider how alignment must play into that, and the behavior becomes
inevitable.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list