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 errorSpec here: https://dlang.org/spec/statement.html#foreach_restrictions
Is it specific to some types? What if collection supports stable "foreach"?