[Issue 12768] New: @nogc algorithm.splitter
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon May 19 07:08:33 PDT 2014
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 at puremagic.com
Reporter: bearophile_hugs at 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- at nogc function
'std.algorithm.splitter!(immutable(char)).splitter'
test.d(4): Error: @nogc function 'D main' cannot call non- at nogc function
'std.algorithm.splitter!(immutable(char)).splitter.Result.popFront'
test.d(4): Error: @nogc function 'D main' cannot call non- at nogc function
'std.algorithm.splitter!(immutable(char)).splitter.Result.front'
--
More information about the Digitalmars-d-bugs
mailing list