Safe to remove AA elements while iterating over it via .byKeyValue?

ikod igor.khasilev at gmail.com
Mon Sep 28 10:01:23 UTC 2020


On Monday, 28 September 2020 at 09:41:02 UTC, Per Nordlöw wrote:
> On Monday, 28 September 2020 at 07:15:27 UTC, Imperatorn wrote:
>> Yes, this should be a compile-time error
>
> Spec here: 
> https://dlang.org/spec/statement.html#foreach_restrictions

Is it specific to some types? What if collection supports stable 
"foreach"?



More information about the Digitalmars-d-learn mailing list