Hash Tables in D

Martin Nowak via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Sun Jan 3 11:29:05 PST 2016


On 01/01/2016 04:27 PM, Minas Mina wrote:
> On Friday, 1 January 2016 at 13:59:35 UTC, Walter Bright wrote:
>> http://minas-mina.com/2016/01/01/associative-arrays/
>>
>> https://www.reddit.com/r/programming/comments/3z03ji/hash_tables_in_the_d_programming_language/
>>
> 
> Thanks for sharing this. I am the author. :)

There is a bug.

You should never do this b/c of iterator/range invalidation.

foreach (key; aa.keys)
    aa.remove(key);



More information about the Digitalmars-d-announce mailing list