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

2018-04-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13880

github-bugzi...@puremagic.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--


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

2018-04-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13880

--- Comment #3 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/ab70319d692639d207665ec50be61110c7d850a1
Fix Issue 13880 - nothrow @nogc std.algorithm.reduce on fixed-size arrays

https://github.com/dlang/phobos/commit/25edf91761ec7a1dbe87933ea8d7f3621860163c
Merge pull request #6398 from wilzbach/fix-13880

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

--


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

2018-03-31 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13880

Seb  changed:

   What|Removed |Added

   Keywords||pull
 CC||greensunn...@gmail.com

--- Comment #2 from Seb  ---
https://github.com/dlang/phobos/pull/6398

--


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

2014-12-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13880

--- Comment #1 from bearophile_h...@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]);
}

--