https://issues.dlang.org/show_bug.cgi?id=2504: reserve for associative arrays

Alexandru Caciulescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 5 19:12:12 PDT 2016


On Friday, 4 November 2016 at 09:37:39 UTC, Shachar Shemesh wrote:
> On 03/11/16 23:00, Yuxuan Shui wrote:
>> On Wednesday, 2 November 2016 at 03:36:42 UTC, Andrei 
>> Alexandrescu wrote:
>>> [snip]
>>>
>>> * The implementation cannot use Phobos' allocator because 
>>> it's in
>>> druntime.
>>
>> How about let the user provide the memory block when they 
>> calls reserve()?
>>
>
> I think that's just a halfhearted attempt at introducing STL's 
> allocators.

I see this topic started a clash of opinions regarding the future 
of AAs. After Andrei suggested a free-list implementation I had a 
good idea of how to proceed but now I am not so sure since this 
discussion isn't converging to a single idea/implementation.





More information about the Digitalmars-d mailing list