std.allocator needs your help

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Sep 24 19:00:01 PDT 2013


On 9/24/13 6:42 PM, deadalnix wrote:
> 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.

The banning is orthogonal to allocators.

Andrei



More information about the Digitalmars-d mailing list