Does associative array change the location of values?

Elronnd elronnd at elronnd.net
Sat Oct 30 22:47:57 UTC 2021


On Saturday, 30 October 2021 at 21:20:15 UTC, Stanislav Blinov 
wrote:
> On Saturday, 30 October 2021 at 20:19:58 UTC, Imperatorn wrote:
>
>>> https://dlang.org/spec/garbage.html#pointers_and_gc
>>
>> What test could be written to verify the behaviour?
>
> Assuming the GC was moving?

If the GC were moving, it would also have to move the pointers 
you took to AA elements.  You would never get stale pointers in 
any event.


More information about the Digitalmars-d-learn mailing list