May 13, 2014 [Issue 12742] New: @nogc std.algorithm.remove | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12742 Issue ID: 12742 Summary: @nogc std.algorithm.remove Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: enhancement Priority: P1 Component: Phobos Assignee: nobody@puremagic.com Reporter: bearophile_hugs@eml.cc void main() @nogc { import std.algorithm; int[3] a = [1, 2, 3]; int[] b = a[].remove!(SwapStrategy.unstable)(0); } DMD 2.066alpha gives: temp.d(4,49): Error: @nogc function 'D main' cannot call non-@nogc function 'std.algorithm.remove!(cast(SwapStrategy)0, int[], int).remove' -- |
Copyright © 1999-2021 by the D Language Foundation