[Issue 13880] nothrow @nogc std.algorithm.reduce on fixed-size arrays

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Dec 20 05:16:16 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13880

--- Comment #1 from bearophile_hugs at eml.cc ---
This is a less easy case to support, because the slice length is known at
compile-time to be > 0, but a slicing generates a dynamic array:


void main() pure nothrow @safe @nogc {
    import std.algorithm: reduce, min;
    int[10] arr;
    reduce!min(arr[0 .. 5]);
}

--


More information about the Digitalmars-d-bugs mailing list