May 19, 2014 [Issue 12768] New: @nogc algorithm.splitter | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=12768 Issue ID: 12768 Summary: @nogc algorithm.splitter 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 { string txt; import std.algorithm: splitter; foreach (x; txt.splitter) {} } DMD 2.066alpha returns: test.d(4): Error: @nogc function 'D main' cannot call non-@nogc function 'std.algorithm.splitter!(immutable(char)).splitter' test.d(4): Error: @nogc function 'D main' cannot call non-@nogc function 'std.algorithm.splitter!(immutable(char)).splitter.Result.popFront' test.d(4): Error: @nogc function 'D main' cannot call non-@nogc function 'std.algorithm.splitter!(immutable(char)).splitter.Result.front' -- |
Copyright © 1999-2021 by the D Language Foundation