https://issues.dlang.org/show_bug.cgi?id=16255
--- Comment #1 from Jon Degenhardt <[email protected]> --- An example that appears related: void main() { import std.algorithm : each; int[] dynamicArray = [1, 2, 3, 4, 5]; int[5] staticArray = [1, 2, 3, 4, 5]; dynamicArray.each!((ref x) => x++); assert(dynamicArray == [2, 3, 4, 5, 6]); // modified staticArray.each!((ref x) => x++); assert(staticArray == [1, 2, 3, 4, 5]); // not modified staticArray[].each!((ref x) => x++); assert(staticArray == [2, 3, 4, 5, 6]); // modified } Using a ref parameter works in the range cases, but not the static array case (opApply). --
