https://d.puremagic.com/issues/show_bug.cgi?id=11883
Andrej Mitrovic <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Andrej Mitrovic <[email protected]> 2014-01-08 09:26:57 PST --- align without an argument will re-set the alignment to default, which may be useful in some situations: ----- struct Foo { align(8): short a; short b; short c; align: short d; } void main() { pragma(msg, Foo.a.offsetof); // 0 pragma(msg, Foo.b.offsetof); // 8 pragma(msg, Foo.c.offsetof); // 16 pragma(msg, Foo.d.offsetof); // 18 } ----- -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
