www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Beta 2.087.0

reply Martin Nowak <code+news.digitalmars dawg.eu> writes:
Glad to announce the first beta for the 2.087.0 release, ♥ to the 66
contributors.

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
Jun 16
next sibling parent aliak <something something.com> writes:
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.

 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
Wow! Very good stuff in this one! Bug 5710, a dip 1000 phobos, and alias templates parameters match types! Thanks!
Jun 16
prev sibling next sibling parent reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
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.

 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
Quite a few duplicate contributors: Aurelien Fredouelle Aurélien Fredouelle Ben Merritt Benjamin L. Merritt kinke Martin Kinkelin shove shove70
Jun 16
parent Seb <seb wilzba.ch> writes:
On Monday, 17 June 2019 at 02:30:45 UTC, Nicholas Wilson 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.

 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
Quite a few duplicate contributors: Aurelien Fredouelle Aurélien Fredouelle Ben Merritt Benjamin L. Merritt kinke Martin Kinkelin shove shove70
Would be easy to fix: https://github.com/dlang/tools/pull/376
Jun 17
prev sibling next sibling parent Marco de Wild <mdwild sogyo.nl> writes:
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.

 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
Cool! Lots of goodies are on the way.
Jun 17
prev sibling next sibling parent greatsam4sure <greatsam4sure gmail.com> writes:
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.

 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 to all those who make this release possible.
Jun 18
prev sibling next sibling parent Johannes Loher <johannes.loher fg4f.de> writes:
Am 17.06.19 um 00:47 schrieb Martin Nowak:
 Glad to announce the first beta for the 2.087.0 release, ♥ to the 66
 contributors.
 
 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 to evrybody who helped making this possible. This is a really exciting release. Personally, I'm very much looking forward to - "Local templates can now receive local symbols." - "Template alias parameters now match basic types as a conversion." - "Phobos is now compiled with -preview=dip1000" The first 2 fix huge annoyances which I have run into several times already. And phobos being compile with DIP1000 is a major milestone towards a safer D. Thanks again to everybody involved!
Jun 18
prev sibling next sibling parent reply Norm <norm.rowtree gmail.com> writes:
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.

 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
Is the JSON_TYPE deprecation listed in the changelog, I couldn't see it? I was on 2.086.0 prior to trying this beta which did not show the deprecation. Cheers, Norm
Jun 18
parent reply FeepingCreature <feepingcreature gmail.com> writes:
On Wednesday, 19 June 2019 at 04:00:44 UTC, Norm wrote:
 Is the JSON_TYPE deprecation listed in the changelog, I 
 couldn't see it? I was on 2.086.0 prior to trying this beta 
 which did not show the deprecation.

 Cheers,
 Norm
That was back on 2.082.0, to make it match the D style guide. Not sure why it didn't show for you. https://github.com/dlang/phobos/commit/fbd094737fa1130ab53f7fcc17b36f8881e10790
Jun 19
parent Norm <norm.rowtree gmail.com> writes:
On Wednesday, 19 June 2019 at 07:08:48 UTC, FeepingCreature wrote:
 On Wednesday, 19 June 2019 at 04:00:44 UTC, Norm wrote:
 Is the JSON_TYPE deprecation listed in the changelog, I 
 couldn't see it? I was on 2.086.0 prior to trying this beta 
 which did not show the deprecation.

 Cheers,
 Norm
That was back on 2.082.0, to make it match the D style guide. Not sure why it didn't show for you. https://github.com/dlang/phobos/commit/fbd094737fa1130ab53f7fcc17b36f8881e10790
This is the first release where the old enum is marked as deprecated so it probably should go in the changelog. Cheers, Norm
Jun 19
prev sibling next sibling parent reply Martin Nowak <code dawg.eu> writes:
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
Jun 25
parent bpr <brogoff gmail.com> writes:
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?
Jun 26
prev sibling parent reply Martin Nowak <code dawg.eu> writes:
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
Jun 29
next sibling parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
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?
Jun 29
parent Martin Nowak <code dawg.eu> writes:
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
Jul 02
prev sibling parent reply Andre Pany <andre s-e-a-p.de> writes:
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é
Jul 02
next sibling parent Eugene Wissner <belka caraus.de> writes:
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)); }
Jul 02
prev sibling parent reply Eugene Wissner <belka caraus.de> writes:
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.
Jul 02
parent reply Andre Pany <andre s-e-a-p.de> writes:
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é
Jul 03
parent Jonathan M Davis <newsgroup.d jmdavisprog.com> writes:
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
Jul 04