June 27, 2014 [Issue 12999] New: SList: linearRemove cannot remove nodes that came from other SLists | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: sigod.mail@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? -- |
Copyright © 1999-2021 by the D Language Foundation