← Back to index
|
Original Bugzilla link
Bug 12731 – Infinite range slices are not themselves sliceable
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-05-11T12:22:00Z
Last change time
2014-05-11T19:13:53Z
Assigned to
nobody
Creator
monarchdodra
Comments
Comment #0
by monarchdodra — 2014-05-11T12:22:36Z
But they should be: import std.range; void main( ) { auto a = repeat(1); auto s = a[1 .. 5]; //OK s = s[1 .. 3]; //NOPE }
Comment #1
by monarchdodra — 2014-05-11T13:21:03Z
https://github.com/D-Programming-Language/phobos/pull/2158
Comment #2
by github-bugzilla — 2014-05-11T19:13:53Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/faf7491d3c1160a9c06a46735eac6cdacdcbd611
Fix Issue 12731 - Infinite range slices are not themselves sliceable
https://github.com/D-Programming-Language/phobos/commit/2fa10321f33dfb796c1b8fa173c5073a45022c68
Merge pull request #2158 from monarchdodra/hasSlicingInfinite Fix Issue 12731 - Infinite range slices are not themselves sliceable