[Issue 11701] New: Regression (2.065 git-head): splitter from std.array/std.algorithm

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 7 05:03:46 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11701

           Summary: Regression (2.065 git-head): splitter from
                    std.array/std.algorithm
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-12-07 05:03:43 PST ---
-----
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)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list