[Issue 14564] [REG2.067] dmd -property -unittest combination causes compiler error
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed May 13 18:15:46 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14564
Илья Ярошенко <ilyayaroshenko at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ilyayaroshenko at gmail.com
--- Comment #4 from Илья Ярошенко <ilyayaroshenko at gmail.com> ---
(In reply to Vladimir Panteleev from comment #3)
> -property is going away, but let's see what the maintainers say.
>
> Introduced in https://github.com/D-Programming-Language/phobos/pull/2723
Also introduced in std.uni (c.isWhite):
@trusted int comparePropertyName(Char1, Char2)(const(Char1)[] a, const(Char2)[]
b)
{
import std.ascii : toLower;
import std.algorithm : cmp, map, filter;
static bool pred(dchar c) {return !c.isWhite && c != '-' && c != '_';}
return cmp(
a.map!toLower.filter!pred,
b.map!toLower.filter!pred);
}
--
More information about the Digitalmars-d-bugs
mailing list