Program size, linking matter, and static this()

Timon Gehr timon.gehr at gmx.ch
Fri Dec 16 15:23:42 PST 2011


On 12/17/2011 12:11 AM, Sean Kelly wrote:
> On Dec 16, 2011, at 1:48 PM, Andrei Alexandrescu wrote:
>
>> On 12/16/11 3:43 PM, Steven Schveighoffer wrote:
>>>
>>>
>>> This can be solved with malloc and emplace
>>
>> Sure you meant static ubyte[__traits(classInstanceSize, T)]
>> and emplace :o).
>
> Don't forget the 16 byte alignment :-)

Which is currently relatively easy:

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


More information about the Digitalmars-d mailing list