https://issues.dlang.org/show_bug.cgi?id=15129
Nick Treleaven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |safe CC| |[email protected] --- Comment #1 from Nick Treleaven <[email protected]> --- > it is sufficient for the context to be const, otherwise it probably needs to > be immutable. `i` should be declared `shared` for safe mutation. To support that, the ParallelForeach.opApply delegate context parameter should require `shared` (which would allow `immutable` too). Unfortunately the opApply delegate doesn't support `shared` (or `immutable`) context inference AFAICT. --
