← Back to index
|
Original Bugzilla link
Bug 13171 – std.algorithm.until(range, sentinel, OpenRight.no) doesn't propagate popping of sentinel to range
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-20T21:38:00Z
Last change time
2014-07-23T13:18:23Z
Keywords
pull
Assigned to
nobody
Creator
nilsbossung
Comments
Comment #0
by nilsbossung — 2014-07-20T21:38:11Z
import std.algorithm; import std.range; void main() { auto a = [1, 2, 3, 4]; assert(equal(refRange(&a).until(3, OpenRight.no), [1, 2, 3])); /* passes */ assert(a == [4]); /* fails, should pass */ } Pull request is on the way.
Comment #1
by nilsbossung — 2014-07-20T21:43:35Z
https://github.com/D-Programming-Language/phobos/pull/2358
Comment #2
by github-bugzilla — 2014-07-23T13:18:22Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/a6da3ece0668b3dcbdb2f6bf15517a4cfa53a579
fix Issue 13171 - std.algorithm.until(range, sentinel, OpenRight.no) doesn't propagate popping of sentinel to range
https://github.com/D-Programming-Language/phobos/commit/19b25be75a286605462d3cff62a262940efa72a0
Merge pull request #2358 from NilsBossung/13171 fix Issue 13171 - std.algorithm.until(range, sentinel, OpenRight.no) doe...