Thread overview | |||||
---|---|---|---|---|---|
|
September 25, 2019 [Issue 20238] Add ability to specify ref argument for single-parameter lambdas without parentheses | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20238 anonymous4 <dfj1esp02@sneakemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |spec Hardware|x86 |All OS|Mac OS X |All --- Comment #1 from anonymous4 <dfj1esp02@sneakemail.com> --- Dunno, delegates already have quite overloaded and ambiguous syntax. -- |
November 03, 2019 [Issue 20238] Add ability to specify ref argument for single-parameter lambdas without parentheses | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20238 Basile-z <b2.temp@gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dlang-bugzilla@thecybershad | |ow.net --- Comment #2 from Basile-z <b2.temp@gmx.com> --- *** Issue 20265 has been marked as a duplicate of this issue. *** -- |
March 04, 2021 [Issue 20238] Add ability to specify ref argument for single-parameter lambdas without parentheses | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20238 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrei@erdani.com Resolution|--- |INVALID --- Comment #3 from Andrei Alexandrescu <andrei@erdani.com> --- In the notation ref elem => elem.x = 1 it is unclear whether `ref` refers to the return value of the lambda or the parameter. These do work: (ref elem) => elem.x = 1 ref (elem) => elem.x = 1 (The second would be rejected because it returns a reference to a local.) I'll close this, please reopen if appropriate. -- |
Copyright © 1999-2021 by the D Language Foundation