Bug 11701 – Regression (2.065 git-head): splitter from std.array/std.algorithm
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-12-07T05:03:00Z
Last change time
2013-12-31T13:52:54Z
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2013-12-07T05:03:43Z
-----
import std.algorithm;
void main()
{
auto a = "".splitter;
auto b = "".splitter(" ");
}
-----
2.064:
$ dmd test.d
>
2.065 git-head:
$ dmd test.d
test.d(7): Deprecation: function std.algorithm.splitter!string.splitter is deprecated - Please use std.array.splitter for string specific splitting
test.d(7): Deprecation: function std.algorithm.splitter!string.splitter is deprecated - Please use std.array.splitter for string specific splitting
Tried to use std.array instead:
-----
import std.array;
void main()
{
auto a = "".splitter;
auto b = "".splitter(" ");
}
-----
2.065 git-head:
$ dmd test.d
test.d(8): Error: template std.array.splitter does not match any function template declaration. Candidates are:
C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\array.d(1397): std.array.splitter(C)(C[] s) if (isSomeChar!C)
test.d(8): Error: template std.array.splitter(C)(C[] s) if (isSomeChar!C) cannot deduce template function from argument types !()(string, string)
I can't import both modules because then I get a conflict:
test.d(8): Error: std.array.splitter!(immutable(char)).splitter at C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\array.d(1397) conflicts with std.algorithm.splitter!string.splitter at C:\dmd-git\dmd2\windows\bin\..\..\src\phobos\std\algorithm.d(2904)
Comment #1 by bugzilla — 2013-12-31T13:52:54Z
*** This issue has been marked as a duplicate of issue 6730 ***