digitalmars.D.bugs - [Issue 13214] New: array.opSlice one element falsy empty
- via Digitalmars-d-bugs (22/22) Jul 27 2014 https://issues.dlang.org/show_bug.cgi?id=13214
https://issues.dlang.org/show_bug.cgi?id=13214 Issue ID: 13214 Summary: array.opSlice one element falsy empty Product: D Version: D2 Hardware: All OS: Linux Status: NEW Severity: critical Priority: P1 Component: Phobos Assignee: nobody puremagic.com Reporter: rburners gmail.com auto a = Array!int(0,1,2,3); auto r = a[1 .. 1]; assert(!r.empty); // this one should not be empty a.linearRemove(r); assert(equal(a[], [0,2,3])); This basically fails every use of one element ranges of std.array. this one is blocking my multilogger. I really would like the fixed for 2.066. I'm working on a patch. hopefully I will have it fixed in the next 8 hours --
Jul 27 2014