https://issues.dlang.org/show_bug.cgi?id=13700
--- Comment #2 from Kenji Hara <[email protected]> --- (In reply to Kenji Hara from comment #1) > https://github.com/D-Programming-Language/dmd/pull/4209 Handle following slice forms: arr[e1-b .. e2] (length = a) arr[e1 .. e2+b] (length = b) arr[e1-a .. e2+b] (length = a + b) arr[e1+a .. e2+b] (length = b - a, if a <= b) arr[e1-a .. e2-b] (length = a - b, if a >= b) Requires: 1. 'e1' and 'e2' are equivalent expression that have no side effects. 2. 'a' and 'b' are (const-folded) constants. --
