Re: Beta 2.084.1

2019-02-04 Thread Pradeep Gowda via Digitalmars-d-announce
On Tuesday, 5 February 2019 at 04:18:55 UTC, Martin Nowak wrote: Glad to announce the first beta for the 2.084.1 point release, ♥ to the 6 contributors. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.084.1.html As usual please report any bugs at

Beta 2.084.1

2019-02-04 Thread Martin Nowak via Digitalmars-d-announce
Glad to announce the first beta for the 2.084.1 point release, ♥ to the 6 contributors. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.084.1.html As usual please report any bugs at https://issues.dlang.org -Martin

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-02-04 Thread Paul Backus via Digitalmars-d-announce
On Monday, 4 February 2019 at 18:35:37 UTC, bitwise wrote: On Monday, 4 February 2019 at 18:32:56 UTC, Dominikus Dittes Scherkl wrote: I don't understand this. What does "(return)?" mean? Is this valid D syntax? What do I miss? I meant for that to be interpreted like a Regular expression,

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-02-04 Thread bitwise via Digitalmars-d-announce
On Monday, 4 February 2019 at 18:32:56 UTC, Dominikus Dittes Scherkl wrote: I don't understand this. What does "(return)?" mean? Is this valid D syntax? What do I miss? I meant for that to be interpreted like a Regular expression, denoting conditional presence of the return statement. I'm

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-02-04 Thread Dominikus Dittes Scherkl via Digitalmars-d-announce
On Monday, 4 February 2019 at 17:09:25 UTC, bitwise wrote: I think this solves all of the above: fun(10); ==> (int __temp0){ (return)? fun( __temp0 ); }(10); -The expression/statement issue is solved by the closure -The initialization issue created by the ":=" approach is not present here

Re: DIP 1016--ref T accepts r-values--Formal Assessment

2019-02-04 Thread bitwise via Digitalmars-d-announce
On Thursday, 24 January 2019 at 07:18:58 UTC, Mike Parker wrote: Walter and Andrei have declined to accept DIP 1016, "ref T accepts r-values", on the grounds that it has two fundamental flaws that would open holes in the language. fun(10) ==> { T __temp0 = void; fun(__temp0 := 10); }