Thread overview | |||||
---|---|---|---|---|---|
|
September 05, 2014 [Issue 13425] DList.linearRemove on last element returns non-empty range | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13425 murphyslaw480@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |murphyslaw480@gmail.com -- |
September 08, 2014 [Issue 13425] DList.linearRemove on last element returns non-empty range | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13425 --- Comment #1 from github-bugzilla@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/d10fea94d5ba6cb18ba98cb59ecbee21fef3dc82 Fix issue 13425 - DList.linearRemove on last... ...element returns non-empty range. The main issue is that DList.Range is implemented in terms of "first and last" as opposed to "first and past last", which means you have to special-case empty ranges. The fix is to do the same thing as in `opSlice`, and to explicitly initialize a null Range when it is empty. https://github.com/D-Programming-Language/phobos/commit/320d5e7e4714eb70cec641ef67f7ea9cd61b8eaa Merge pull request #2497 from monarchdodra/DListRemove Fix issue 13425 - DList.linearRemove on last... -- |
September 08, 2014 [Issue 13425] DList.linearRemove on last element returns non-empty range | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13425 github-bugzilla@puremagic.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED -- |
Copyright © 1999-2021 by the D Language Foundation