Object.factory() and exe file size bloat
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 21 04:48:14 PDT 2015
On 8/21/15 7:39 AM, Dicebot wrote:
> On Friday, 21 August 2015 at 11:34:58 UTC, Steven Schveighoffer wrote:
>> A MUCH better solution:
>>
>> T[] _d_arrayliteral(T)(size_t length)
>
> It needs to be trivial wrapper which forwards to proposed
>
>> void* _d_arrayliteralTX(size_t length, size_t sizeelem, uint flags, bool
>> isshared);
>
> Otherwise you get another binary bloat issue.
Sure:
pragma(inline, true) T[] _d_arrayliteral(T)(size_t length)
-Steve
More information about the Digitalmars-d
mailing list