std.allocator needs your help

deadalnix deadalnix at gmail.com
Tue Sep 24 18:42:17 PDT 2013


On Tuesday, 24 September 2013 at 22:39:27 UTC, Andrei 
Alexandrescu wrote:
> On 9/24/13 3:11 PM, Namespace wrote:
>>> I would rather want new to be overloadable and have 2 sets of 
>>> parameters
>>>
>>> new (allocator)(arg1, arg2)
>>>
>>> Where "allocator" would go to the overloaded version of new 
>>> and "arg1"
>>> and "arg2" will be passed to the constructor.
>>
>> +1
>
> We're banning that syntax of new.
>

It seem to me like typed allocator should try to fit in rather 
than redefine everything.


More information about the Digitalmars-d mailing list