alignment on stack-allocated arrays/structs

bearophile bearophileHUGS at lycos.com
Tue Nov 17 13:06:05 PST 2009


Tomas Lindquist Olsen:

> yep, D provides no way to do this, they'd all align to 4 bytes (at
> least on x86-32)

The idea, that I suggested to the LDC team too, is to extend the semantics of align, no new syntax seems needed:

align(8) alias int[4] Foo;
align(8) double good;

Bye,
bearophile



More information about the Digitalmars-d mailing list