Program size, linking matter, and static this()
bearophile
bearophileHUGS at lycos.com
Fri Dec 16 18:56:47 PST 2011
Sean Kelly:
> On Dec 16, 2011, at 1:48 PM, Andrei Alexandrescu wrote:
> > Sure you meant static ubyte[__traits(classInstanceSize, T)]
> > and emplace :o).
>
> Don't forget the 16 byte alignment :-)
Is it possible to support this in D2/D3?
align(16) static ubyte[__traits(classInstanceSize, T)] _localTime;
There are some situations I'd like a static array to be aligned to 16 bytes.
Bye,
bearophile
More information about the Digitalmars-d
mailing list