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

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 3 21:22:28 PDT 2016


On 11/3/16 11:48 PM, safety0ff wrote:
> On Thursday, 3 November 2016 at 13:19:17 UTC, Steven Schveighoffer wrote:
>>
>> So technically, the freelist is still needed.
>
> In case I wasn't clear in my previous post:
> We can't use a freelist because it breaks safety.

Yes, you can't use a free-list when removing nodes. AA used to actually 
free the memory, but that was decided against long ago.

There are so many possibilities if we just move to a templated type.

-Steve


More information about the Digitalmars-d mailing list