[Issue 12999] New: SList: linearRemove cannot remove nodes that came from other SLists
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Jun 27 02:28:11 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12999
Issue ID: 12999
Summary: SList: linearRemove cannot remove nodes that came from
other SLists
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: sigod.mail at gmail.com
```
auto s = SList!int(1, 2, 3, 4, 5);
auto s2 = SList!int(1, 2, 3, 4, 5);
auto r = s2[];
popFrontN(r, 1);
auto r1 = s.linearRemove(r); // throws exception
```
Is it a bug or intended by design?
--
More information about the Digitalmars-d-bugs
mailing list