June 26, 2019
On Sunday, 16 June 2019 at 22:47:57 UTC, Martin Nowak wrote:
> Glad to announce the first beta for the 2.087.0 release, ♥ to the 66 contributors.

Second beta is live since yesterday.

> http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.087.0.html
>
> As usual please report any bugs at
> https://issues.dlang.org
>
> -Martin


June 26, 2019
On Wednesday, 26 June 2019 at 06:53:03 UTC, Martin Nowak wrote:
> On Sunday, 16 June 2019 at 22:47:57 UTC, Martin Nowak wrote:
>> Glad to announce the first beta for the 2.087.0 release, ♥ to the 66 contributors.
>
> Second beta is live since yesterday.
>
>> http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.087.0.html
>>
>> As usual please report any bugs at
>> https://issues.dlang.org
>>
>> -Martin

I'm curious. There was some controversy about the fix to the now infamous Issue 5710, and doubt about whether the PR to fix it would be merged. I see that the fix is now merged (great!) but I see a PR (9702) to revert this, which IMO would be a shame.

Is this a feature we shouldn't get used to?
June 29, 2019
On Sunday, 16 June 2019 at 22:47:57 UTC, Martin Nowak wrote:
> Glad to announce the first beta for the 2.087.0 release, ♥ to the 66 contributors.

Release Candidate is live.

> http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.087.0.html
>
> As usual please report any bugs at
> https://issues.dlang.org
>
> -Martin


June 30, 2019

On 30/06/2019 00:21, Martin Nowak wrote:
> On Sunday, 16 June 2019 at 22:47:57 UTC, Martin Nowak wrote:
>> Glad to announce the first beta for the 2.087.0 release, ♥ to the 66 contributors.
> 
> Release Candidate is live.
> 
>> http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.087.0.html
>>
>> As usual please report any bugs at
>> https://issues.dlang.org
>>
>> -Martin

Thanks. It seems https://github.com/dlang/druntime/pull/2620 hasn't made it into the RC although it was merged into stable 2 days ago. I guess that coincided with preparations for the release candidate. Will it still be included in the release?
July 02, 2019
On Sunday, 30 June 2019 at 06:45:05 UTC, Rainer Schuetze wrote:
> Thanks. It seems https://github.com/dlang/druntime/pull/2620 hasn't made it into the RC although it was merged into stable 2 days ago. I guess that coincided with preparations for the release candidate. Will it still be included in the release?

Yes and yes
July 03, 2019
On Saturday, 29 June 2019 at 22:21:42 UTC, Martin Nowak wrote:
> On Sunday, 16 June 2019 at 22:47:57 UTC, Martin Nowak wrote:
>> Glad to announce the first beta for the 2.087.0 release, ♥ to the 66 contributors.
>
> Release Candidate is live.
>
>> http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.087.0.html
>>
>> As usual please report any bugs at
>> https://issues.dlang.org
>>
>> -Martin

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é
July 03, 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));
}
July 03, 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é

Both, std.uni and std.ascii have isAlpha and isUpper.
July 03, 2019
On Wednesday, 3 July 2019 at 06:43:50 UTC, Eugene Wissner wrote:
> 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é
>
> Both, std.uni and std.ascii have isAlpha and isUpper.

Thanks, you helped me to find the issue. The productive coding looks like this:

import std.algorithm : all;

void main()
{
    import std.ascii : isAlpha, isDigit;
    assert("abc123".all!(c => (c.isAlpha && c.isUpper == false) || c.isDigit));
}

With previous dmd version, although import isUpper was not defined, somehow it worked.
This seems to be fixed now. This issue was the missing isUpper import statement.
The error message is a little bit odd:
Error: static assert:  "_lambda isn't a unary predicate function for range.front"

Kind regards
André
July 04, 2019
On Wednesday, July 3, 2019 1:30:37 AM MDT Andre Pany via Digitalmars-d- announce wrote:
> Thanks, you helped me to find the issue. The productive coding looks like this:
>
> import std.algorithm : all;
>
> void main()
> {
>      import std.ascii : isAlpha, isDigit;
>      assert("abc123".all!(c => (c.isAlpha && c.isUpper == false)
>
> || c.isDigit));
>
> }
>
> With previous dmd version, although import isUpper was not
> defined, somehow it worked.
> This seems to be fixed now. This issue was the missing isUpper
> import statement.
> The error message is a little bit odd:
> Error: static assert:  "_lambda isn't a unary predicate function
> for range.front"

There have been bugs in the past with regards to symbols being pulled in without the actual import being there (due to stuff that was imported using it IIRC). I don't know what the current state of that is, but I recall there being a deprecation message about that behavior going away. So, if that behavior finally went away, then code could have compiled with the previous release but not the new one.

- Jonathan M Davis



1 2
Next ›   Last »