std.allocator needs your help

Dmitry Olshansky dmitry.olsh at gmail.com
Mon Sep 23 13:04:07 PDT 2013


23-Sep-2013 22:52, Jacob Carlborg пишет:
> On 2013-09-23 17:47, Manu wrote:

>> Imagine if new was a template (it would have to be a template).
>> Allocating a template would require nested template syntax every time,
>> which is pretty ugly.
>>
>>    X x = new!(X!arg(args...)); // ewoo, paren spam...
>
> Why not:
>
> X x = new!X(args);
>

+1 Or call it make for the time being so as to not collide with the keyword.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list