[Issue 13257] [REG2.067a] Deprecation message when using std.getopt with string[] parameter

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Aug 8 10:17:08 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13257

--- Comment #7 from hsteoh at quickfur.ath.cx ---
Here's a minimal test case (reduced from rdmd.d (dustmite + manual + 2nd
dustmite + 2nd manual)):
-----
import std.algorithm;
void main()
{       
        string val;
        foreach (elem; val.splitter(val).map!(a => a)) {}
}
-----

Compile command: dmd rdmd.d
Compiler output:
-----
/usr/src/d/phobos/std/algorithm.d(483): Deprecation: function
std.algorithm.splitter!(string, string).splitter.Result.back is deprecated -
splitter!(Range, Range) cannot be iterated backwards (due to separator
overlap).
/usr/src/d/phobos/std/algorithm.d(488): Deprecation: function
std.algorithm.splitter!(string, string).splitter.Result.popBack is deprecated -
splitter!(Range, Range) cannot be iterated backwards (due to separator
overlap).
-----

--


More information about the Digitalmars-d-bugs mailing list