Release Candidate [was: Re: Beta 2.087.0]
Eugene Wissner
belka at caraus.de
Wed Jul 3 06:41:27 UTC 2019
On Wednesday, 3 July 2019 at 05:13:34 UTC, Andre Pany wrote:
>
> Hi,
>
> for this coding
>
> ```
> import std;
>
> void main()
> {
> assert("abc123".all!(c => (c.isAlpha && c.isUpper == false)
> || c.isDigit));
> }
> ```
>
>
> 2.087.0 RC throws an error:
>
> C:\D\dmd2\windows\bin\..\..\src\phobos\std\algorithm\searching.d(123): Error: static assert: "_lambda isn't a unary predicate function for range.front"
> unary.d(5): instantiated from here: all!string
>
> Is this a bug?
>
> Kind regards
> André
import std.ascii;
import std.algorithm;
void main()
{
assert("abc123".all!(c => (c.isAlpha && c.isUpper == false)
|| c.isDigit));
}
More information about the Digitalmars-d-announce
mailing list