[Issue 13214] New: array.opSlice one element falsy empty

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 27 03:24:43 PDT 2014


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 at puremagic.com
          Reporter: rburners at 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

--


More information about the Digitalmars-d-bugs mailing list